部分云厂商的预设安装系统并没开启Root登录,我们需要手动登录。
登录后输入
sudo passwd
这样就可以设置一个Root登录密码
切换Root用户
su
cd && vim /etc/ssh/sshd_config
如果出现
-bash: vim: command not found
我们需要先安装Vim
apt update && apt upgrade
apt install vim
找到#PermitRootLogin prohibit-password,在下方添加
PermitRootLogin yes
按下ESC后输入
:wq
重启SSH服务即可
/etc/init.d/ssh restart
Hi everyone, it’s my first visit at this web page, and post is
actually fruitful in support of me, keep up posting these types of articles.