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