freebsd下root不能用ssh连接
PermitRootLogin yes
PasswordAuthentication yes
2.修改/etc/rc.conf添加echo 'sshd_enable="YES"'>>/etc/rc.conf
3.重新启动ssh
/etc/rc.d/sshd restart
修改下配置文件
1.修改 /etc/ssh/sshd_config 找到并修改PermitRootLogin yes
PasswordAuthentication yes
2.修改/etc/rc.conf添加echo 'sshd_enable="YES"'>>/etc/rc.conf
3.重新启动ssh
/etc/rc.d/sshd restart
本文介绍如何在FreeBSD系统中配置SSH服务以允许root用户远程登录。通过修改sshd_config文件设置PermitRootLogin及PasswordAuthentication参数,并在rc.conf中启用sshd服务,最后重启SSH服务即可实现。
927

被折叠的 条评论
为什么被折叠?



