MAC uses terminal SSH command for file upload and download

Source: Internet
Author: User
Tags scp command

Windows system under the Xshell can be very convenient to login to the server upload download files, although the Mac does not Xshell, but we have a universal terminal Ah, Mac terminal is the self with SSH.

1, SSH Login server

Ssh-p Port number username@ server IP

⚠️ Note: here-P (port) is lowercase p

2, upload files to the server

Scp-p port number local file path username@ server IP: Destination path

3, download files from the server to the local

Scp-p Port number username@ip: Path local Path

⚠️ Note:
1, the SCP command-p for uppercase, and SSH login command, the blogger had in this fell, written as P is not connected to the server, even the connection is not to mention the upload file ...
2, 2 and 3 operations are based on the local, so do not log on to the server in the state of execution, otherwise it will tell you can not find your local path (file), because the server has a server directory, the first exit exit login and then operate it.

As for the operation of the files between the various servers, the same is the SCP command, and the above command is basically the same, extrapolate very easy to get.

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.