ssh-config
ssh-config copied to clipboard
= in ProxyCommand are lost
- Have a config that contains
Host YYYY
HostName YYYY
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
ProxyCommand ssh -i ~/.ssh/id_rsa -W %h:%p -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null XXX@ZZZ
User XXX
- I parse the config,
.prependto add an entry, andtoString()the config
The config now looks like
Host YYYY
HostName YYYY
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
ProxyCommand ssh -i ~/.ssh/id_rsa -W %h:%p -o StrictHostKeyChecking no -o UserKnownHostsFile /dev/null XXX@ZZZ
User XXX
the = have been removed from ProxyCommand. If I start with the command in double quotes, it doesn't remove the = but it does remove the quotes.