Re: How do I use ProxyCommand to connect to remote host using shared session enabled by ControMaster?
Igor Bukanov <[email protected]> Tue, 8 Feb 2011 03:08:57 +0100
| Newsgroups | gmane.network.openssh.general |
|---|---|
| Message-ID | <[email protected]> |
On 5 February 2011 19:10, Asif Iqbal <[email protected]> wrote: > # cat ~/.ssh/config ... > host remotehost > =C2=A0hostname remotehost.example.net > =C2=A0ProxyCommand ssh jumphost -t ssh %h ProxyCommand should in general connect its input/output stream to sshd demon listening on some socket. In your case I would suggest to use the nc command from jumphost that binds stdin/stdout to the ssh port on the remote host, like in: ProxyCommand ssh -T -a jumphost nc %h %p where -T and -a is used to make sure that useless in this case tty on jumphost is not allocated and no agent is forwarded.