I created a section within my SSH Config file, but I have a letter case issue when trying to execute my ProxyCommand where once I input SystemDevice
it reads back in the config file as systemdevice
-- in lower case. It's not executing with my exact input. I did some research and I came across %n
may solve my issue, but that doesn't work with ProxyCommand. I receive percent_expand: unknown key %n
if I try use it.
Reading the man page, it states:
ProxyCommand accepts the tokens %%, %h, %p, and %r.
My SSH Config:
Host SystemDevice*
User test
ProxyCommand socat UNIX:/Devices/%h -
My error when trying to run ssh SystemDevice1001
:
socat[4088] E connect(5, AF=1 "/Devices/systemdevice1001", 39): No such file or directory
ssh_exchange_identification: Connection closed by remote host
If I change my config to work with lowercase it works a charm! Thing is, I can work with lowercase, but for my own knowledge I would love to see if there's a solution to this! I couldn't find anything online relating to this.
My OS: Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-119-generic x86_64)
%n
instead of%h
. That should give you the original host name as it was specified on the command line. Do you haveCanonicalizeHostname
set?percent_expand: unknown key %n
if i use it. As forCanonicalizeHostname
im not sure i follow what that is?