Here is my standard work ssh config which everyone uses:
host go
User user
ProxyJump otherHostname
StrictHostKeyChecking=no
UserKnownHostsFile=/dev/null
IdentityFile ./ssh/key
ProxyCommand ssh -i ~/.ssh/key -W %h:%p otherUser@OtherHostname
The proxyCommand
part bothers me as the whole point of an ssh config is to have no use for commands.
Are there options for the command parameter which would mean there wouldn't be an ssh command in the config?
proxyCommand uses the identityFile and ProxyJump values for the command:
ssh -i ~/.ssh/key -W %h:%p otherUser@OtherHostname
In other words:
ssh -i IdentityFile -W %h:%p differe tUser@ProxyJump
host *
which I added to simplify things, so if I understand correctly the ProxyCommand isn't even being executed? There isn't even a port specified and the proxyCommand contain%p
– Nickotine Oct 31 '23 at 18:17