scp is secure copy, is used for remote file copy. Data transfer uses ssh1, and uses the same authentication method as ssh1, providing the same security guarantee. Unlike rcp, Scp will ask you to enter a password if needed.
The simplest application is as follows:
scp local username@ipaddress:filename1 remote username@ipaddress:filename 2< Br>
[Local Username@IP Address:] You can enter the password corresponding to the remote username. You may need to enter the password corresponding to the remote username.
Several parameters may be useful:
-v and Most of the linux commands have the same meaning of -v for displaying progress. They can be used to view connections, authentication, or configuration errors.
-C Enable compression options.
-P Select port. Note that -p is already used by rcp.
-4 Force IPV4 address.
-6 Force IPV6 address.
Copy single file command:
scp file username@ip:filepath
Description:
file: The name of the file to be copied
username: username for remote login,
ip: remote server ip
filepath: remote file path
Copy folder command as follows (more plus A -r parameter can be:)
scp -r file username@ip:filepath
There are 3 ways to copy files between different Linux:
One is to install ftp server on one of the Linux, so you can copy it in another client program using ftp.
The second method is to use the samba service, similar to the way Windows file copy operation, more concise and convenient
The third is to use the scp command for file copying.
scp is a file copy with Security, based on ssh login. It is more convenient to operate. For example, to copy the current file to another remote host, you can use the following command.
scp /home/1.gif [email protected]:/home/root
Then you will be prompted to enter the login password of the root user of the other 172.19.2.75 host, and then Start cp and ungzip
If you want to reverse the operation, copy the file from the remote host to the current system, it is also very simple:
scp [email protected]:/home/abc.gif /home/root
The format of the copy folder is
scp -r [email protected]:/home//local directory
Starting today, I officially entered the development of tiny4412. Today I mainly watched the startu
A flash drive is one of the most useful tools a person can have. With it, you can back up critical d
Speaking of the command, you have to mention this special command vi it is not only a command, but a
If you want to try a desktop system other than Mac and Windows, Linux should definitely be your fir
What is the difference between Linux and BSD?
The difference between the two-layer, three-layer, and four-layer switches is
Redis.conf configuration file details
Common security policy setting method under Linux
Linux VPS system security settings basic tutorial
Remember that the Auto Increment fault
How to remove the old kernel of Ubuntu Linux system
How to verify whether a service supports tcpwrapper
DirectAdmin installation tutorial
Security Management Techniques for Advanced Linux Operating Systems
How to solve the problem when the Win10 is disconnected?
How can Win8 not open the file?
How to quickly and effectively clear the u disk usage record
How to shield Sina Weibo from sending people's private letter
Win10 official version will push large repair patch
Windows XP wants to make Xian Win7 become the global operating system boss
What should I do if the pop-up certificate expires when Win7 starts the League of Legends?