I'm trying to set up automatic SSH hopping through a server which doesn't have nc.
This works from the command line:
ssh -A gateway ssh steve@target
(I have added my public key to the SSH agent).
However, adding it to ~/.ssh/config doesn't:
Host target
User steveb
ProxyCommand ssh -A gateway ssh steve@targetip
$ ssh target
Pseudo-terminal will not be allocated because stdin is not a terminal.
^CKilled by signal 2.
Attempting to force the issue with -t
is amusing but unhelpful.
ProxyCommand ssh -A -t gateway ssh steve@targetip
$ ssh target
Pseudo-terminal will not be allocated because stdin is not a terminal.
Pseudo-terminal will not be allocated because stdin is not a terminal.
^CKilled by signal 2.
More -t
's? No good.
ProxyCommand ssh -A -t -t gateway ssh steve@targetip
$ ssh target
tcgetattr: Inappropriate ioctl for device
^CKilled by signal 2.
Is this possible? Most tutorials (eg http://www.arrfab.net/blog/?p=246 ) suggest using nc
.