我正在尝试通过没有nc的服务器设置自动SSH跳跃。
这可以从命令行进行:
ssh -A gateway ssh steve@target
(我已将公共密钥添加到SSH代理中)。
但是,将其添加到〜/ .ssh / config不会:
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.
试图强行解决问题-t
很有趣,但无济于事。
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.
还有更多-t
?不好。
ProxyCommand ssh -A -t -t gateway ssh steve@targetip
$ ssh target
tcgetattr: Inappropriate ioctl for device
^CKilled by signal 2.
这可能吗?大多数教程(例如http://www.arrfab.net/blog/?p=246)都建议使用nc
。