最小化安装Linux系统后,ssh远程登录服务默认是关闭且禁止直接使用root账户进行登录

一键开启:

cat >> /etc/ssh/sshd_config << EOF
PasswordAuthentication yes
PermitRootLogin yes
EOF
service ssh restart
Last modification:April 3, 2023
If you think my article is useful to you, please feel free to appreciate