I have a long hostname with various arguments in my client config, so I created a second Host
entry with the Hostname
pointing to the long name (see below).
Host CT106-LongHost-Name-With-Mixed-Case
Hostname 1.2.3.4
Host CT106
Hostname CT106-LongHost-Name-With-Mixed-Case
ssh CT106-LongHost-Name-With-Mixed-Case
works fine; however:
ssh CT106
results in an:
ssh: Could not resolve hostname ct106-longhost-name-with-mixed-case: nodename nor servname provided, or not known
I know I can just use the short name for the Host
entry and not worry about it, just curious if this is intentional.
ssh ct106-longhost-name-with-mixed-case
work? As far as my experience goes, host names are always case insensitiveHost
directive:Host CT106-LongHost-Name-With-Mixed-Case CT106
should do the trick.