Today I wanted to use Kali to do something bad. What I didn’t expect was that after the installation was completed, SSH could not go up. I was really unhappy. Let’s take a picture first to see what happened. This will also help children who have the same problem know how to solve it.
This! ! ! In fact, I forgot to enable the SSH service, so I need to enable the SSH service in Kali. The command is as follows:
# service sshd start
Next, reconnect again to avoid the following problems (this is the focus of today).
The SSH connection has been successful. Next, I was asked to enter the password, but no matter how I entered it, it seemed that the password was wrong. Until the end, it prompted "Permission denied, please try again." This means that I do not have permission. The next step is Time to solve the problem.
# vim /etc/ssh/sshd_config 修改: #PasswordAuthentication yes 为: PasswordAuthentication yes 修改: PermitRootLogin prohibit-password 为: PermitRootLogin yes 接下来需要重新启动ssh。 # service sshd restart
The connection will be successful again, as shown in the picture below.
The above is the detailed content of Kali Linux SSH login troubleshooting. For more information, please follow other related articles on the PHP Chinese website!