When doing penetration testing and setting up our own environment, we often need to build SSH service locally as a test point. The following briefly introduces the process of setting up SSH service in local Kali LInux: SSH is installed by default in Kali linux, if not installed, you can use the following command to proceed installation:
apt-get update
apt-get install ssh
After editing the configuration file, change "#PermitRootLogin prohibit-password" to "PermitRootLogin yes":
leafpad /etc/ssh/sshd_config
Then start the service:
ervice ssh start
After the link test: