Home  >  Article  >  System Tutorial  >  Kali Linux SSH login troubleshooting

Kali Linux SSH login troubleshooting

PHPz
PHPzOriginal
2024-07-19 05:47:49300browse

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.

Kali Linux SSH登录故障处理

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).

Kali Linux SSH登录故障处理

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.

Kali Linux SSH登录故障处理

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn