Koozali.org: home of the SME Server

file transfer using SSH

Gordon

file transfer using SSH
« on: August 21, 2002, 07:51:55 PM »
Can I use SSH remotely for file transfer rather than FTP?  I have been reluctant to open my FTP port on the firewall because of lack of password encryption.

Mehdi

Re: file transfer using SSH
« Reply #1 on: August 21, 2002, 11:55:37 PM »
Hi,

You should read the scp manpage. Scp is a special version of cp using ssh.
The best explanation is an example, so imagine you are on a machine called "client" and you want to download a file named "file" in your home directory in the distant machine called "server" :

$>scp your_login@server:file .

and if you want to put  a file to the server :

$>scp file your_login@server:

There are other parameters, see in the manpage, good luck ;-)

Tibor

Re: file transfer using SSH
« Reply #2 on: August 22, 2002, 01:41:42 AM »
If your client machine is a Windows box use WinSCP http://winscp.vse.cz/eng/
If you need login users other than root use the e-smith-usershellaccess at http://www.dungog.net/sme/howto/usershell.html

Sean Reynaud

Re: file transfer using SSH
« Reply #3 on: August 22, 2002, 06:27:22 PM »
You may also try rsync.

rsync -e ssh -av path_to_src_file username@sme:path_to_dest_file

Rsync will only copy over files that have changed since the previous rsync...

/sean

Gordon

Re: file transfer using SSH
« Reply #4 on: August 22, 2002, 06:35:48 PM »
WinSCP is excellent.  Thanks for the tip!