[SSHd] Increasing wait time?

Peter Boosten peter at boosten.org
Fri May 9 03:01:42 UTC 2008



Valeriu Mutu wrote:
> On Thu, May 08, 2008 at 07:33:13AM +0200, Peter Boosten wrote:
>> Vince Sabio wrote:
>>> Note if you choose to do this: scp'ing files becomes a four-step process 
>>> (i.e., scp file(s) to intermediate server, log in to intermediate server, 
>>> scp to destination server, delete file(s) from intermediate server). Still 
>>> worth it, though.
>> Never thought of port forwarding?
>>
>> Peter
> 
> Exactly.
> 
> Following Peter's idea and assuming that public key authentication is setup, the tunnel could be setup as easy as:
> ssh -f -L localhost:3333:localhost:4444 userA at machineA "ssh -f -L localhost:4444:localhost:22 userB at machineB sleep 120"
> 
> In this case, we setup a tunnel through machineA to machineB.

No, I was more thinking of:

ssh -L 4444:your.own.host:22 user at your.friends.host

and then open a new shell:

scp -P 4444 the-file-you-want-to-copy user at localhost:

This works easiest with agent forwarding, but I guess any authentication 
will do.

Peter

-- 
http://www.boosten.org


More information about the freebsd-questions mailing list