Partial content support in SCP?

Alexander Apprich a.apprich at science-computing.de
Fri Sep 10 13:06:38 UTC 2004


Ow Mun Heng wrote:
> Is there partial content support in SCP like that of wget -c?? It's
> pretty bad that i have to open up a web server to get files from a
> server that has only ssh enabled.
> 
> Rsync doesn't work as well (AFAIK), once the process is killed, along
> goes the .xx file.
> 
> 
Don't know if this would work, but why don't you try to open an ssh
connection (a ssh tunnel), and use wget -c thru the tunnel?

## BEGIN ##
#!/bin/sh
WGET_HOST=10.0.0.1
WGET_PORT=22
WGET_LOCALPORT=8001

USER=Ow.Mun.Heng
HOST=YourHost.whatever.org

eval localport=$WGET_LOCALPORT
eval host=$WGET_HOST
eval port=$WGET_PORT

ssh -o GatewayPorts=no $USER $HOST

## END ##

That should open a local tunnel to your server. Then you could
just

     wget -c localhost:8001

Don't know if this works, never tried it out...

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3879 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040910/b5360f0e/attachment-0002.bin 


More information about the users mailing list