Write in front
The project needs to download the source code from the server and record it for personal use.
Introduction to SSH
SSH is the abbreviation of Secure Shell , formulated by the IETF Network Working Group; SSH is a security protocol based on the application layer. SSH is a more reliable protocol designed to provide security for remote login sessions and other network services. Using the SSH protocol can effectively prevent information leakage in the remote management process. SSH was originally a program on UNIX systems, and then quickly expanded to other operating platforms. SSH can make up for loopholes in the network when used correctly. The SSH client is suitable for multiple platforms. Almost all UNIX platforms—including HP-UX, Linux, AIX, Solaris, Digital UNIX, Irix, and other platforms, can run SSH.
SSH remote login
A simple password is enough, only the server address and account password are required.
$ ssh user@host
scp downloads files from the server
download file
$ scp user@host:<文件路径> <本地路径>
such as
$ scp [email protected]:~/example.txt ~/Destop
Download folder
$ scp -r user@host:<文件夹路径> <本地路径>
such as
$ scp -r [email protected]:~/example ~/Destop
Tip : The path of the file can be viewed through the ls
and pwd
command after logging in to the server with SSH .
Reference link
If there are mistakes or not rigorous, please correct me, thank you very much.
My blog: http://breadhunter.gitee.io