Article directory
1. Modify sshd_config
Modify /etc/ssh/sshd_config
the file, find it #Authentication
, and PermitRootLogin
modify the parameters to yes
. If the PermitRootLogin parameter is commented, remove the comment symbol (#) from the first line. change intoPermitRootLogin yes
sudo nano /etc/ssh/sshd_config
2. Set root password
sudo passwd root
3. Restart the SSH service
sudo service ssh restart
Finally, you can connect remotely via ssh ~