Kali open SSH service under Linux

Source: Internet
Author: User
Tags kali linux


Kali version: Kali 2.0



First, configure the SSH parameters

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

Remove the comment for #passwordauthentication No and modify No to Yes//kali default Yes


Modify Permitrootlogin Without-password to permitrootlogin Yes


Then save Exit VI Editor.


Second, start the SSH service

The command is:/ETC/INIT.D/SSH start

or service SSH start


To see if the SSH service status is working correctly, the command is:

/ETC/INIT.D/SSH status

Or

Service SSH Status


Note: These two types of startup ssh are temporary, if the machine restart you need to re-enter the above command to open ssh, if the SSH service needs to start automatically the next time, you need to use the following command to start the SSH service, the command is:

UPDATE-RC.D SSH enable//system automatically start SSH service

UPDATE-RC.D SSH disabled//Shut down system to start SSH service automatically


Third, if the above two steps are finished or can not login Kali Linux ssh, you need to generate two secret keys

So, Sir, two keys:

#ssh-keygen-t dsa-f/etc/ssh/ssh_host_dsa_key

#ssh-keygen-t dsa-f/etc/ssh/ssh_host_rsa_key

After executing the command will let enter the password, directly hit enter set to empty


Four, to this SSH can normally log on, OK.

This article is from "Eagle a" blog, please make sure to keep this source http://laoyinga.blog.51cto.com/11487316/1766340

Kali open SSH service under Linux

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.