Upload locally to the server
scp [localPath] [username]@[IP]:[serverPath]
例:scp ./download/go1.14.2.linux-amd64.tar.gz [email protected]:download
Server file download locally
scp [username]@[IP]:[serverPath] [localPath]
Specify server port
scp connects to port 22 of the server by default, if you want to specify the port, you can use -P
scp -P 20021 [username]@[IP]:[serverPath] [localPath]