Ubuntu modification allows root to log in directly

888u

Last update at :2024-05-18,Edit by888u

Ubuntu does not allow root to log in directly by default. We need to do sodo. Doing it like this is a waste of time and very annoying, right? Let's modify it so that Ubuntu allows users to log in directly using the root account.

1. Change the root password: sudo passwd root

2. Modify the ssh configuration: sudo vi /etc/ssh/sshd_config, find the PermitRootLogin item and change it to yes, save and exit and restart the ssh service, sudo service ssh restart.

Recommended site searches: free personal cloud servers outside mainland China, website domain name query system, anti-attack IP, registered domain name, free ftp space application, Hong Kong's best virtual host, free cloud host, server rental US high defense, Yangzhou dual Online server check ip,

Ubuntu modification allows root to log in directly

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码