With two machines, both LAN, two machines can communicate with each other without problems, the middle of no firewall. The two machine IPs are: a:192.168.1.240 b:192.168.1.102 assume that the ssh of a b machine allows root login to upload a/root/abc.zip to B machine and put it in the/ABC directory, you can use the command on a machine scp/root/ab C.zip [email protected]:/abc/If the SSH port is not the default of 22, for example, Port 1234 plus-P parameter: scp-p 1234/root/abc.zip [email protected] :/abc/can also be used on the B-machine command: SCP [email protected]:/root/abc.zip/abc/below an example, I hope you understand: [[email protected] ~]# Pwd/roo T[[email protected] ~]# lsanaconda-ks.cfg ftpaccount install.log.syslogbackup.tar.gz install.log Svn1.4.3[[ema Il protected] ~]# SCP backup.tar.gz [email protected]:/tmp/the authenticity of host ' 192.168.1.21 ( 192.168.1.21) ' can ' t be established. RSA Key fingerprint is 4d:b4:e1:5b:80:8f:ea:df:0a:eb:dd:30:e7:00:07:90.are your sure you want to continue connecting (yes/n o)? yeswarning:permanently added ' 192.168.1.21 ' (RSA) to the list of known hosts. [email protected] ' s password: << prompt for 192.168.1.21 ssh password backup.tar.gz 100% 5120 KB 1.3mb/s 00:04[[email protected] ~]#
LINUX SCP Command Detailed