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.