Home >System Tutorial >LINUX >Problems and solutions to the problem that SSH cannot connect when installing Ubuntu 22.04
php editor Banana discovered that the problem of being unable to connect after installing SSH in Ubuntu 22.04 has been bothering many users. In daily use, SSH connection is very important, so it is particularly critical to solve this problem in time. This article will introduce in detail the common reasons why SSH cannot connect when installing Ubuntu 22.04, and provide solutions to help you solve this problem smoothly.
vim /etc/ssh/sshd_config
Turn on the PermitRootLogin annotation and change the value to yes
Save changes and exit
:wq
sudo service ssh restart
Preset settings:
The above is the detailed content of Problems and solutions to the problem that SSH cannot connect when installing Ubuntu 22.04. For more information, please follow other related articles on the PHP Chinese website!