跳至主要內容

Ubuntu修改root账号密码及远程登录

xw小于 1 分钟LinuxLinux

sudo passwd

vim /etc/ssh/sshd_config
找到PermitRootLogin without-password 修改为PermitRootLogin yes
service ssh restart