SSH three components ssh, SFTP, SCP (verbose)

Source: Internet
Author: User
Tags file copy scp command

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)

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.