解决freebsd下root默认不能用ssh连接

freebsd下root不能用ssh连接

修改下配置文件

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

猜你喜欢

转载自wyzuomumu.iteye.com/blog/2221801