SSH cannot log in with root user

1. Open config

1
vim /etc/ssh/shhd_config
SHELL

2. Modify config

1
PermitRootLogin yes
TEXT

3. Save and quit, restart service

1
/etc/init.d/ssh restart
SHELL

4. You can now use ssh to connect to the virtual machine


SSH cannot log in with root user
https://www.hardyhu.cn/2022/08/02/SSH-cannot-log-in-with-root-user/
Author
John Doe
Posted on
August 2, 2022
Licensed under