Linux Remote Operations Command SSH SCP

Source: Internet
Author: User

To connect to a remote host:


Attention:

After the SSH session is disconnected, the process ends, and if you need to continue the process of the remote host running after the SSH session is disconnected, you need to use screen:


First you need to install screen:

Installing screen directly with Apt-get: sudo apt-get install screen


Then use the SSH command to connect to the remote host:

SSH (-p portnum) [email protected]


Then create a screen virtual session:

Screen-s Name


If you disconnect the SSH connection at this time, after reconnecting the remote host with the SSH command, use screen to restore the previous session:

Screen-r Name


Note the name used two times is the same and can be modified to something else (test, etc.), but the same name is required for creation and recovery.





To transfer files to and from a remote host:

SCP from to

If you get files from a remote host to Local:

SCP (-P portnum) [email protected]:/abspath This secondary path

Upload from local to remote host:

SCP Current path (-P portnum) [email Protected]:/abspath



Linux Remote Operations Command SSH SCP

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.