Linux learning (that's what Linux should learn) 7.2

Source: Internet
Author: User

About SSH

SSH service is for remote Linux host operation, default service port is 22

Usage: SSH [parameter] host IP

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/99/9A/wKiom1lKITbR3xWfAAAUauDHQ2U163.png "/>

Systemctl Enable sshd Boot

Systemctl start sshd start SSH service

/etc/ssh/sshd_config is the configuration file for the SSH service

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/99/9A/wKiom1lKITjCtcAzAAAhuNrWICM819.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/99/9B/wKioL1lKITiBNv7gAABCs0lKPJ4278.png "/>


Transferring files remotely

SCP commands can transfer files from one host to another host

Usage SCP [parameter] file address Host account @ Host IP: Transfer directory

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/99/9A/wKiom1lKITij1L6AAAAgzHN_Vtg117.png "/>

Enter the command, you will need the other host's account password

Alternatively, you can transfer files from the remote host to a local

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/99/9A/wKiom1lKITmwa1dOAACNQdYObAM503.png "/>


Screen Service (uninterrupted session service)

The system is not self-brought and needs to be installed first.

Screen Common parameters

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/99/9B/wKioL1lKITnydogXAAA7szUx2_U118.png "/>

Cases:

Create a session and specify the name, Test1

Screen S test1

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/99/9A/wKiom1lKITqi0B_kAAALnAY5kAE157.png "/>

Then create a session and specify the name: Test2

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/99/9B/wKioL1lKITryt5s0AAAIiZxG5LY002.png "/>

Take Test1 offline (detached offline status)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/99/9B/wKioL1lKITrRptAoAAAJzVNIKqI744.png "/>

Session sharing features

Two terminals can use one session simultaneously under the same system

Terminal A:screen S test1 (Create a session)

Terminal B:screen x (shared Test1)

Two terminals are modified in real time, and Terminal B synchronizes in real time when terminal A is input

This article is from "Deast's Nest" blog, please make sure to keep this source http://xudongdong.blog.51cto.com/1889083/1940601

Linux learning (that's what Linux should learn) 7.2

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.