Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started 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.
-
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 ;-)
-
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
-
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
-
WinSCP is excellent. Thanks for the tip!