Re: Partial content support in SCP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux