[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] ssh or telnet with zmodem
Hi!
On Wed, Jun 29, 2005 at 01:40:57PM -0500, Evan Langlois wrote:
> > Why would you use zmodem over ssh when you could just use scp?
>
> A ---> B ---> C
>
> A = myhost.mydomain.com
> B = yourhost.yourdomain.com
> C = 192.168.10.10
>
> [...]
>
> bash@A> ssh B
> bash@B> ssh C
> bash@C> sz myfile.tar.gz
>
> escape from your terminal and use 'rz'
Or use scp with a suitable ProxyCommand:
bash@A> scp -o "ProxyCommand ssh B netcat %h %p" C:myfile.tar.gz .
If you don't have netcat installed on B, you can still work with a
tunnel:
bash@A> ssh -f -L 2222:localhost:2222 B ssh -L 2222:localhost:22 C 'echo Open \&\& sleep 10'
[Wait until you see "Open" on your terminal]
bash@A> scp -P 2222 localhost:myfile.tar.gz .
Note that you have to increase the number of backslashes when you
add more "hops", e.g. for A -> B -> C -> D
bash@A> ssh -f -L 2222:localhost:2222 B ssh -L 2222:localhost:22 C ssh -L 2222:localhost:22 'echo Open \\\&\\\& sleep 10'
Ciao
Thomas
--
Thomas Binder (Gryf @ IRCNet)
gryf@hrzpub.tu-darmstadt.de
PGP-key available on request!