[Israel.pm] web-based script
tal at musicgenome.com
Tue Aug 31 06:09:38 PDT 2004
On Tue, 31 Aug 2004 15:32:55 +0300 (IDT)
Shlomo Yona <shlomo at cs.haifa.ac.il> wrote:
> On Tue, 31 Aug 2004, Tal Kelrich wrote:
> >>  this is tricky: For some security reason, server B
> >> doesn't accept logins from anywhere but server C, so server
> >> C must first be contacted. Then one needs to login to server
> >> B. Moreover, server B doesn't accept any sftp calls, so one
> >> must sftp from B to any other server to get files. Server C
> >> doesn't have enough quota to relay the file, so server A
> >> must be also used...
> > Can't you just tunnel your sftp connection via server C?
> Can you please explain and give an example?
Ok, it's something like this:
first off, set up a tunneled connection, you connect to local port 2200 which connects you in turn with the remote ssh
note that you will have to remove the record for 127.0.0.1 in ~/.ssh/known_hosts if you had one originally, or this will not work
ssh -N -L 2200:b.example.org:22 c.example.org
then scp through it (or rsync, or sftp)
scp -P 2200 foo bar baz user at localhost:
sftp -oPort=2200 localhost
rsync --rsh="ssh -p 2200" foo bar baz user at localhost:
PGP fingerprint: 3EDF FCC5 60BB 4729 AB2F CAE6 FEC1 9AAC 12B9 AA69
Key Available at: http://www.hasturkun.com/pub.txt
Don't let your status become too quo!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://perl.org.il/pipermail/perl/attachments/20040831/6bef897c/attachment.pgp
More information about the Perl