SCP & Mount
SCP (Secured Copy) scp relies on ssh to operate. scp is used to securely copy files/directories from/to remote location. The syntax of scp is identical to cp . Syntax : scp -arg source destination # scp 192.168.10.1:/root/f1 /home/sarmed Copies the file ‘f1’ from remote host 192.168.10.1 to local directory /home/sarmed # scp f2 192.168.10.2:/home/sarmed Copies the local file ‘f2’ to remote host 192.168.10.2 in the location /home/sarmed # scp –r localdir 192.168.10.2:/home/sarmed Copies local ‘localdir’ to remote host 192.168.10.2 in the location /home/sarmed # scp -P 87 192.168.10.1:/root/f3 /home/sarmed Same as the first example. However, this time scp connects to port 87 instead of default ssh port 22. # scp –P 87 sarmed@192.168.10.1:/home/sarmed...