Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Gordon on August 21, 2002, 07:51:55 PM

Title: file transfer using SSH
Post by: Gordon 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.
Title: Re: file transfer using SSH
Post by: Mehdi 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 ;-)
Title: Re: file transfer using SSH
Post by: Tibor 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
Title: Re: file transfer using SSH
Post by: Sean Reynaud 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
Title: Re: file transfer using SSH
Post by: Gordon on August 22, 2002, 06:35:48 PM
WinSCP is excellent.  Thanks for the tip!