linux允许ssh远程密码方式登录root账户
发布时间:07/10/2019 12:45 更新时间:07/14/2019 11:05
linux允许ssh远程密码方式登录root账户:
- 某些系统版本没有自带ssh服务器,若未安装直接通过包管理器安装 openssh-server。
- vim /etc/ssh/sshd_config 将PermitRootLogin值设为yes,PasswordAuthentication值设为yes。
- service sshd restart 重启ssh服务器即可。