Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 May 2008 20:52:29 +0200
From:      Christian Laursen <xi@borderworlds.dk>
To:        freebsd-questions@freebsd.org
Subject:   Re: [SSHd] Increasing wait time?
Message-ID:  <ygfwsm348eq.fsf@dominion.borderworlds.dk>
In-Reply-To: <4823BE7B.2050806@boosten.org> (Peter Boosten's message of "Fri\, 09 May 2008 05\:01\:15 %2B0200")
References:  <q7412457qoumm8v8dbth10fug2ctbrlfp0@4ax.com> <200805060931.18936.beech@freebsd.org> <20080506173912.GB85015@Grumpy.DynDNS.org> <200805060959.28509.beech@freebsd.org> <p05200f04c4482c6bafb9@[192.168.2.250]> <48229099.5030004@boosten.org> <20080508224235.GA87584@devil.mutu.us> <4823BE7B.2050806@boosten.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Boosten <peter@boosten.org> writes:

> No, I was more thinking of:
>
> ssh -L 4444:your.own.host:22 user@your.friends.host
>
> and then open a new shell:
>
> scp -P 4444 the-file-you-want-to-copy user@localhost:
>
> This works easiest with agent forwarding, but I guess any
> authentication will do.

It is also worth taking a look at the ProxyCommand option.

For the case above something like this should be put in ~/.ssh/config:

Host your.own.host-tunneled
  HostKeyAlias your.own.host
  ProxyCommand ssh user@your.friends.host nc your.own.host 22

The you can just do "ssh your.own.host-tunneled" and go through
your.friends.host transparently.

-- 
Christian Laursen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygfwsm348eq.fsf>