In linux, SSH is started and automatically started upon startup. in linux, ssh is started.

Source: Internet
Author: User

In linux, SSH is started and automatically started upon startup. in linux, ssh is started.

Address of this Article

Sharing outline:

1. Check whether startup is enabled.

2. Set automatic start

 

1. [Check whether startup is enabled]

Start the SSH service "/etc/init. d/sshd start ". Then use netstat-antulp | grep ssh to check whether relevant information can be seen.

2. [set Automatic startup]

How do I set up Automatic startup of ssh and other services with the system startup?

Method 1: [root @ localhost ~] # Vi/etc/rc. local
Add: service sshd start or/etc/init. d/sshd start

Method 2: Enter/etc/rc. d and run
Level: for example, rc3.d. Change the ssh service with K headers to start with S.

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.