sftp over 2 hosts?

Devon Bleak devon at admin2.gisnetworks.com
Thu Mar 15 04:13:52 EST 2001


it works fine for me doing ssh -t host1 sftp host2, although these are all
linux boxen.

what kinda errors are you getting?

devon


----- Original Message -----
From: "Stephan Hendl" <Stephan.Hendl at lds.brandenburg.de>
To: "<OpenSSH Unix Dev" <openssh-unix-dev at mindrot.org>
Sent: Wednesday, March 14, 2001 7:25 AM
Subject: Re: sftp over 2 hosts?


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