SSH consists of 3 components
(1) SSH telnet node: ssh user name @IP address
① does not allow null password or bad password Authentication login
② does not allow root user Login
③ has two versions of SSH,ssh2 security is higher
(2) Sftp file sharing connection, xftp connection is sftp Implementation
(3) SCP file copy sharing
SCP command: Copy transfer of two node files
(1) Sending files to the target node: SCP path/filename User name @ip address: Directory
such as: to the 127.0.0.1 node root user/tmp to upload files
SCP path/file name [email protected]:/tmp
(2) Pull file from Target node: SCP username @ip Address: path/filename File directory
Note : When copying remotely to a target node , it is equal to creating a an identical file. , when the original file file properties have changed (such as when the file was created) If you do not expect the file attributes to change
Scp-p-R XXX
-P: File attributes do not change (recommended addition)
-R : If the copy is the directory needs to add - R , recursion
-P (uppercase ) : Specifies the port number if the port number has changed in ssh
SSH three components ssh, SFTP, SCP (verbose)