The free Linux SSH login close

 

1. From cp / scp command

scp(secure copy)Is linuxthe system based on sshremote login file for secure copy command.

1. passing the file to the remote
 SCP local_file remote_username @ remote_ip: the remote_file 
2. folder transmitted to the remote 
SCP - R & lt local_folder remote_username @ remote_ip: remote_folder 
3. Copy the remote file to the local file parameters but the exchange position to 
SCP remote_username @ remote_ip: remote_file local_file

Remarks:

Remote Copy commands as well as rsync, scp less consumption of resources, system load will not improve much, at this point, rsync is far less than it. rsync will be a little faster than scp, but a small number of case files, rsync will lead to disk I / O is very high, and scp does not influence the normal use of the system.
And scp command is similar to cp, but cp can copy the machine can not be cross-server, and therefore need to work with ssh constituting the scp command.

After the direct use scp to copy files across machines, you will be prompted to enter a password, scp principle is to use ssh to connect the server machine, and then to perform remote copy (cp) using a network

2.

Guess you like

Origin www.cnblogs.com/wqbin/p/11622136.html