解决ubuntu获取root账号并开通ssh
1、设置root密码
sudo passwd root
2、修改etc/ssh/sshd_config文件
su - root
vi /etc/ssh/sshd_config
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes
PasswordAuthentication yes
StrictModes yes
3、重启ssh
service ssh restart
                    
                
                
            
        
浙公网安备 33010602011771号