SSH: Linux开启ssh并启动root登录设置默认密码

apt update && apt install -y openssh-server
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
echo "root:xxxxxx" | chpasswd
 
posted @ 2022-09-10 09:26  _清风_明月  阅读(432)  评论(0)    收藏  举报