sftp over 2 hosts?

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Thu Mar 15 00:10:55 EST 2001


On Wed, Mar 14, 2001 at 01:57:28PM +0100, Stephan Hendl wrote:
> I tried sftp and it works perfect via a direct connection between 2
> hosts. Our situation is that we have to go from our intranet through a
> firewall gateway to the internet and then to a third server. With
> "normal" ssh this works via: "ssh -t hosta ssh hostb". It seems to me
> that this doesn't work with sftp ;-((. Would it be complicate to
> implement?

you don't need to use
	myhost$ ssh -t hosta ssh hostb
use this instead:
	myhost$ ssh -L 1234:hostb:22 hosta
	myhost$ ssh -p 1234 localhost
or
	myhost$ sftp -o 'Port=1234' localhost

-m





More information about the openssh-unix-dev mailing list