7
4
I have ssh
configured to automatically forward through the bastion host:
Host bastion_host
HostName bastion.example.com
Host internal_host
ProxyCommand ssh -q bastion_host nc -q0 internal_host.dmz 22
User internal_user
This works. However, if I try to connect via mosh I get the following error:
$ 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?).
What I'm looking for is a mosh
connection from my system to the bastion host and a normal ssh
tunnel from the bastion host to internal hosts. Possible?
Can you replace foo and bar with more descriptive names like bastion_host and internal_host? I'm not able to follow the config file well enough to be confident I understand your intent. – Nick Russo – 2014-10-06T23:01:13.333
Updated question, should be easier to follow now. – xj9 – 2014-10-06T23:23:44.427
Excellent, the intent is clear now, and I can reproduce the problem: ssh bastion_host and ssh internal_host both work, as does mosh bastion_host, but mosh internal_host causes the error you've quoted. – Nick Russo – 2014-10-06T23:49:50.743