I'm connecting to host-b through host a
Host host-a HostName 10.8.0.1 Port 333 User host_admin IdentityFile ~/.ssh/id-ecdsa-admin Host host-b HostName 18.104.22.168 Port 567 ProxyCommand ssh -q -W %h:%p host-a User host_user
On my host-a server for host_admin in /home/host_admin/.ssh/config I have:
Host * IdentityFile ~/.ssh/id-ecdsa-admin User host_user Port 567
I do expect that proxy command to consider those User/Port/IdentityFile when connecting to other ssh but they seem to be ignored.
I know they are ignored, because when I remove Port and User from host-b config I can't connect. Shouldn't those from host-b user ssh config be considered?
Host host-b HostName 22.214.171.124 ProxyCommand ssh -q -W %h host-a
What is the catch here?