By default, Ubuntu does not enable the root user and does not allow root remote login.
Enable root user: sudo passwd root //It is enabled after changing the password.
1 Modify the ssh configuration file
$ sudo vi /etc/ssh/sshd_config
Find the PermitRootLogin no line and change it to PermitRootLogin yes
2. Restart the openssh server
$ sudo service ssh restart
After that, you can use the ssh software to connect to the server.
Set root to log in with ssh under ubuntu
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326596079&siteId=291194637
Recommended
Ranking