Secure Shell
How do I use ProxyCommand to connect to remote host using shared session enabled by ControMaster? Feb 05 2011 06:10PM
Asif Iqbal (vadud3 gmail com) (1 replies)
Re: How do I use ProxyCommand to connect to remote host using shared session enabled by ControMaster? Feb 08 2011 02:08AM
Igor Bukanov (igor mir2 org) (1 replies)
On 5 February 2011 19:10, Asif Iqbal <vadud3 (at) gmail (dot) com [email concealed]> wrote:
> # cat ~/.ssh/config
...
> host remotehost
>  hostname remotehost.example.net
>  ProxyCommand 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.

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus