|
Linux System
Administration
SSH - Secure Shell
|
SSH File Transfer Clients
- You can use scp to transfer files from a remote machine
to your machine.
- The syntax is similar to the cp command.
scp file-to-be-copied-location
location-to-copy-file
- Examples:
- From local to 198.94.134.22:
scp
test1.txt jwagner@198.94.134.22:/home/jwagner/
This command will take the local file test1.txt and place it on the
remote machine in the directory /home/jwagner
- From 198.94.134.22
to local:
scp
jwagner@198.94.134.22:/home/jwagner/report.txt .
This command will take the
file from the remote machine and place it in the current directory .
- You can even copy files from different machines:
scp
user1@host1:file user2@host2:dir