我已ssh配置为通过堡垒主机自动转发:
Host bastion_host
HostName bastion.example.com
Host internal_host
ProxyCommand ssh -q bastion_host nc -q0 internal_host.dmz 22
User internal_user
Run Code Online (Sandbox Code Playgroud)
这有效。但是,如果我尝试通过mosh进行连接,则会出现以下错误:
$ mosh internal_host
/usr/local/bin/mosh: Could not resolve hostname internal_host
ssh_exchange_identification: Connection closed by remote host
/usr/local/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).
Run Code Online (Sandbox Code Playgroud)
我正在寻找的是mosh从我的系统到堡垒主机的连接以及ssh从堡垒主机到内部主机的正常隧道。可能的?