Linux 运维笔记------------------------------- 其它Linux系统配置
freebsd 12中开启root的ssh
1. 在/etc/ssh/sshd_config中可以修改如下选项:
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证
Cannot 'restart' sshd. Set sshd_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restar
2.
sshd_enable="YES"
3.
然后重启ssh服务:
# /etc/rc.d/sshd restart
浙公网安备 33010602011771号