[SSHd] Increasing wait time?

Valeriu Mutu unix at mutu.us
Thu May 8 22:42:47 UTC 2008


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.

> -- 
> http://www.boosten.org
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
Valeriu Mutu


More information about the freebsd-questions mailing list