I'm trying to use intermediate machine to connect to a remote host but I'm doing something wrong and not sure what.
I have added to my intermediate box /etc/ssh/sshd_config following lines:
Match User deploy
PermitOpen any
AllowTcpForwarding yes
ForceCommand echo 'This account can only be used for deployments'
I can ssh from that intermediate box onto the target system no problem but I was hoping to be able to just execute a command like one below to connect via my proxy box:
ssh deploy@dev-linux-03 -W TARGET_IP:22
But I'm getting different response:
SSH-2.0-OpenSSH_4.3
Protocol mismatch.
Anything obvious I've missed?