How to upload files to the SSH server from a local computer

Source: Internet
Author: User
Tags scp command ssh server

Because SSH is used, we cannot use simple drag-and-drop or copy-and-paste operations to communicate with files on the local computer and the SSH server. We need to use the SCP command line.

 

SCP <local file name> <user name >@< SSH server address>: <upload and save path: File Name>

For example. If you want to upload the.txt file under the current directory to the testfile folder on the sshserver and change it to B .txt, the SSH server URL is 127.0.0.1, and the user name is admin.CodeAs follows:

SCP a.txt admin@127.0.0.1:./test/B .txt

 

Without B .txt, the file name is not changed. In general, it is appropriate to use absolute paths in the path.

Related Article

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.