Use of scp

Source: Internet
Author: User
Tags ssh secure shell

Use of scp
1. transmission between linux and linux (1) Copying local files to a remote server

# Scp/home/administrator/test.txt root@192.168.1.2:/home/administrator

/Home/administrator/: absolute path of the local file

Test.txt: local file to be copied

Root: log on to the remote server using the root user (other users with the same permissions can also be used)

192.168.1.2: Remote Server IP address (domain name or machine name can also be used)

/Home/administrator: copy the local file to the path on the remote server

Use ssh to remotely log on to the server as the root user.

After the connection is established, the file is transmitted, showing the percentage, actual time, transmission speed, and other information.

(2) copy the files on the remote server to the Local Machine

# Scp remote@www.abc.com:/home/administrator/test.txt/home/administrator

Remote users can log on to the remote server (other users with the same permissions can also be used)

Domain Name of the remote server www.abc.com (of course, it can also be the IP address of the remote server)

/Home/administrator/test.txt the file to be copied on the remote server

/Home/administrator copy the remote file to the local absolute path

Note: The remote server must enable the remote connection ssh service.

Ii. File Transfer between Windows and linux (1) Using ssh secure shell

You can easily transfer files.

File Transfer between windows, windows, and linux.

NOTE 2: Remote links can also be used for file transmission.

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.