FreeBSD下ssh的开通方法
1、/etc/ssh/sshd_config文件加入下面几条:
IgnoreRhosts yes
IgnoreUserKnownHosts yes
PrintMotd yes
StrictModes no
RSAAuthentication yes
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
2、/etc/rc.conf文件加入:
sshd_enable="YES"
3、/etc/inetd.conf 去掉SSH前面的“#”
3、重启下sshd
/etc/rc.d/sshd restart
4、OK啦,测试下吧,用sockstat命令检查下port 22 是否开启,开启则成功。