LINUX SCP Command Detailed

Source: Internet
Author: User
Tags scp command ssh port

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.