Transfer files using scp

command: scp <from> <to>

Fetch files from Remote Server:

1
2
3
4
5
# Fetch a file
scp user@remote-server:/home/username/file.zip ~/downloads/file.zip
# Fetch a directory
scp -r user@remote-server:/home/user/dir ~/downloads/dir

Upload files to Remote Server:

1
2
scp ~/downloads/file.zip user@remote-server:/home/username/file.zip
scp -r ~/downloads/dir user@remote-server:/home/username/dir

For Windows, Use WinSCP

0%