About Linux system services boot-boot settings

Source: Internet
Author: User

Kail_linux_x64 How to set up an SSH connection

UPDATE-RC.D SSH Enable

1. Close the lock screen

Click "Show Apps", search for setting, find "power" under Hardware, and select "Never" from "blank Screen".

(Kali exit directly after the selection, it does not have a certain button)

2. Start SSH service on boot

1, modify the Sshd_config file, the command is: vi/etc/ssh/sshd_config 

2, remove #passwordauthentication no comment, and modify no to Yes  // The default is Yes

3 in my Kali, remove comments from #permitrootlogin Yes//In my Kali, remove comments

4, start SSH service, command is:/etc/init.d/ssh  Start//or service SSH start

5, verify the SSH service status, command:/etc/init.d/ssh status

One-time service ssh start or/etc/init.d/ssh start

Set boot service self-boot

Very simple, the command line executes directly:

UPDATE-RC.D SSH Enable

To turn off SSH service self-booting:

UPDATE-RC.D SSH Disabled




CentOS and Redhat System Setup service starts from boot

1: First check the boot up service list Chkconfig--list

2: If there is no need to add chkconfig--add in the list first httpd

3: After adding, you can see if it is powered on from boot chkconfig--list httpd

4: Ifhttpd0:off1:off2:off3:off4:off5:off6:Off all off indicates that the service is not booting from

5: You need to use the command chkconfig httpd on

About Linux system services boot-boot settings

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.