Kali Linux installation ssh Server

Source: Internet
Author: User
Tags openssh server ssh server kali linux

Kali Linux does not have SSH service installed by default, in order to realize Telnet Kali Linux, we need to install SSH service.

Installing OpenSSH Server
# apt-get install openssh-server
Configuring the SSH service boot up
# update-rc.d -f ssh remove# update-rc.d -f ssh defaults# update-rc.d -f ssh enable 2 3 4 5
Change the default SSH key
# cd /etc/ssh# mkdir ssh_key_backup# mv ssh_host_* ssh_key_backup
To create a new key:
# dpkg-reconfigure openssh-server
Allow root users to log on remotely using SSH

By default, it is not allowed to use the root user ssh remote login, need to change the SSH configuration file:

# vim /etc/ssh/sshd_config

Put

PermitRootLogin prohibit-password

Switch

PermitRootLogin yes

To restart SSH:

# service ssh restart
Telnet using another computer

OK,SSH Service Setup is complete.

As you can see, after successful login, there will be some greeting information balabala. These text messages can be customized:

# vim /etc/motd

Write the greeting text you want.

To restart SSH:

# service ssh restart

Kali Linux installation ssh Server

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.