SSH file copy (ubuntu copy from remote server to local)

Purpose: Recently, a remote server is used to process some data, which involves data transmission. Because I am not familiar with remote transmission, I wrote it down for future reference.

Because use ssh remote login, operation. Configuration and login, etc., will be added later.

Configuration (omitted, added later)

Login:
ssh [email protected] -p 15022
where username is the username, 111.11.11.11 is the ip address, and -p 15022 is the port.
Just enter the password later.

Subsequent remote operation.

After completing the ssh configuration, it is found that some data needs to be downloaded or transmitted. Generally use the following method:
If you are in the local current directory:
scp -P15022 [email protected]:/home/username/data/data/data/neucon_demodata_b5f1.zip .

If you want to copy to your desired directory:
scp -P15022 [email protected]:/home/username/data/data/data/neucon_demodata_b5f1.zip /home/your_dir

Guess you like

Origin blog.csdn.net/weixin_43851636/article/details/127460673