sftp over 2 hosts?

Stephan Hendl Stephan.Hendl at lds.brandenburg.de
Thu Mar 15 02:25:57 EST 2001


thanks, that works, but the problem is that I have two open connections now, but I need actually only one. Furthermore the command 

myhost$ ssh -L 1234:hostb:22 hosta

gives me a promt back, so I have to open a window and to make small and to open a next one for the command 

myhost$ ssh -p 1234 localhost

That works, but in my opinion it is not user friendly.


Stephan


--
LDS Brandenburg
Dr. Stephan Hendl
fon: +49-(0)331-39 471
fax: +49-(0)331-27548 1187
EMail: stephan.hendl at lds.brandenburg.de


>>> Markus Friedl <Markus.Friedl at informatik.uni-erlangen.de> 03/14 2:10  >>>
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