To copy file from localmachine to remote machine
e.g. # scp file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
Copy the file from a remote machine to the local machine
# scp ubuntu@192.168.0.1:/home/ubuntu/Desktop/file.txt /home
To make file transfer fast use "-C" switch, it will compress the data on the go and deliver same format file at destination.
# scp -C file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
To make limit of transfer bandwidth use "l" switchIt.
# scp -l 400 file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
The 400 value behind “-l” parameter is mean that we limit the bandwidth for SCP process only 50 KB/sec. One thing to remember that bandwidth is specified in Kilobits/sec (kbps). It is mean that 8 bits equal with 1 byte.
Specify specific port to use with SCP
# scp -P 24 file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
To Copy Folder
# scp -r pictures file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
To Hide progress meter and warning / diagnostic messages from SCP, you may disable it using “-q” switch.
# scp -q file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
Copy the file "file.txt" from remote machine "ubuntu1" to remote machine "ubuntu2"
#scp ubuntu1@192.168.0.1:/home/ubuntu/Desktop/file.txt ubuntu2@192.168.0.2:/home/
e.g. # scp file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
Copy the file from a remote machine to the local machine
# scp ubuntu@192.168.0.1:/home/ubuntu/Desktop/file.txt /home
To make file transfer fast use "-C" switch, it will compress the data on the go and deliver same format file at destination.
# scp -C file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
To make limit of transfer bandwidth use "l" switchIt.
# scp -l 400 file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
The 400 value behind “-l” parameter is mean that we limit the bandwidth for SCP process only 50 KB/sec. One thing to remember that bandwidth is specified in Kilobits/sec (kbps). It is mean that 8 bits equal with 1 byte.
Specify specific port to use with SCP
# scp -P 24 file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
To Copy Folder
# scp -r pictures file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
To Hide progress meter and warning / diagnostic messages from SCP, you may disable it using “-q” switch.
# scp -q file.txt ubuntu@192.168.0.1:/home/ubuntu/Desktop
Copy the file "file.txt" from remote machine "ubuntu1" to remote machine "ubuntu2"
#scp ubuntu1@192.168.0.1:/home/ubuntu/Desktop/file.txt ubuntu2@192.168.0.2:/home/