Sample Header Ad - 728x90

ssh config: can I replace proxy command?

1 vote
1 answer
497 views
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
Asked by Nickotine (554 rep)
Oct 31, 2023, 05:16 PM
Last activity: Oct 31, 2023, 07:27 PM