Re: double sshing, using ProxyCommand
From: Paul Hink (email_at_p-hink.de)
Date: 04/08/04
- Previous message: Darren Tucker: "Re: scp should fail if not without a password"
- In reply to: Darren Tucker: "Re: double sshing, using ProxyCommand"
- Next in thread: Darren Tucker: "Re: double sshing, using ProxyCommand"
- Reply: Darren Tucker: "Re: double sshing, using ProxyCommand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 8 Apr 2004 08:26:25 GMT
Darren Tucker <dtucker@dodgy.net.au> wrote:
> In article <c51cme$2lrt63$1@ID-20530.news.uni-berlin.de>,
> Paul Hink <email@p-hink.de> wrote:
>>I would suggest using something like this:
>>
>>Host M2
>> ProxyCommand ssh M1 netcat -q 0 %h %p
>>
>>Upon connecting to M2, ssh will connect to M1 using ssh and tell
>>netcat on M1 to connect to M2's ssh port. Then, ssh on your local
>>machine establishes a connection over this channel to M2's sshd.
>
> Just watch that sshd doesn't leave orphan netcat processes lying
> around on M1.
netcat(1) works great for me if used with the "-q 0" option. It then
quits as soon as the tunnelled ssh connection is closed.
Paul
- Previous message: Darren Tucker: "Re: scp should fail if not without a password"
- In reply to: Darren Tucker: "Re: double sshing, using ProxyCommand"
- Next in thread: Darren Tucker: "Re: double sshing, using ProxyCommand"
- Reply: Darren Tucker: "Re: double sshing, using ProxyCommand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading