To SSH into a server: ssh <username>@<ip address>
To upload a directory recursively (with encryption... blowfish is an encryption algorithm and scp stands for secure copy protocol, a utility available on almost all UNIX-derived machines): scp [-c blowfish] -r <source path> <username>@<target ip address>:<target path> To download over scp, switch the source and target.
For example, to upload from your music collection: scp -r /home/<username>/Desktop/Musical/Music/Depeche\ Mode/ <username>@<server address>:/home/<username>/Musical/Music/
And to do the opposite (download a directory from the server, in this example to the current directory): scp -r <username>@<server address>:/home/<username>
Another option is sftp which can perform ftp-like operations (including interactive sessions) over an ssh connection.
Links:
- OpenSSH web site: http://www.openssh.com/
- Wikipedia SFTP article: http://en.wikipedia.org/wiki/SSH_file_transfer_protocol
- Wikipedia SSH article: http://en.wikipedia.org/wiki/SSH
- Wikipedia SCP article: http://en.wikipedia.org/wiki/Secure_copy
- SFTP manpage: http://www.eos.ncsu.edu/remoteaccess/man/sftp.html
- SCP manpage: http://www.linuxcommand.org/man_pages/scp1.html
- SSH manpage: http://www.eos.ncsu.edu/remoteaccess/man/ssh.html
No comments:
Post a Comment