I use winscp or secure shell client.
sftp is (and works) similar to ftp
scp is a neat little program:
copy from a remote machine to my machine:
scp firstname.lastname@example.org:/home/remote_user/Desktop/file.txt /home/me/Desktop/file.txt
copy from my machine to a remote machine:
scp /home/me/Desktop/file.txt email@example.com:/home/remote_user/Desktop/file.txt
copy all file*.txt from a remote machine to my machine (file01.txt, file02.txt, etc.; note the quotation marks:
scp “firstname.lastname@example.org:/home/remote_user/Desktop/file*.txt” /home/me/Desktop/file.txt
copy a directory from a remote machien to my machine:
scp -r email@example.com:/home/remote_user/Desktop/files /home/me/Desktop/.
scp stands for secure cp (copy), which means you can copy files across ssh connection. That connection will be securely encrypted, it is a very secure way to copy files between computers
You can use
scp to copy files from or to a remote server. You can also copy files from one remote server to another remote server, without passing traffic through your PC.
You can use
scp on Linux, Mac and Windows (using WinSCP).
scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]
- Is the name or IP of the host where the source file is, this can be omitted if the from-host is the host where you are actually issuing the command
- Is the user which have the right to access the file and directory, that is supposed to be copied in the case of the from-host, and the user who has the rights to write in the to-host
- Is the file or files that are going to be copied to the destination host, it can be a directory but in that case you need to specify the -r option to copy the contents of the directory
- Is the name that the copied file is going to take in the to-host, if none is given all copied files are going to keep its names
- Preserves the modification and access times, as well as the permissions of the source-file in the destination-file
- Do not display the progress bar
- Recursive, so it copies the contents of the source-file (directory in this case) recursively
- Displays debugging messages