Secure Shell (SSH) is a network protocol used for a secure connection between a client and a server. Each interaction between the server and a client is encrypted.
This tutorial will explain about to enable SSH on a Kali Linux machine.
By default, Remote access via SSH is not allowed. For Enabling SSH on Linux follow the below step :-
- Open the terminal and install OpenSSH Server.
sudo apt-get install ssh
- To run SSH Configuration in Continuously manner for remote SSH, There would be need to remove run LEVEL by executing the command “update-rc.d -f ssh remove” . It would ask the authentication if root level login is not there. Authenticate to execute the command.
update-rc.d -f ssh remove
- Load the default SSH Level
update-rc.d -f ssh defaults
- Change the default SSH Key. The reason of change the default SSH Key are to prevent from the attacker that default SSH key can be cracked by the attacker.
$ cd /etc/ssh/
$ mkdir insecure_original_default_kali_keys
$ mv ssh_host_* insecure_original_default_kali_keys/
$ dpkg-reconfigure openssh-server
- Start the SSH Services
$sudo service ssh start