FreeBSD 5.4 安装后无法用SecureCRT连接

前提:
1、sshd已经启动 //可以用/etc/rc.d/sshd restart 来尝试是否可以重启服务
2、端口处于LISTEN状态
3、远程使用telnet Host_IP_Address 22 有回显 //SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419
使用SecureCRT连接时提示:unable to authenticate using any of the configured authentication methods
【FreeBSD 5.4 安装后无法用SecureCRT连接】这时需要修改sshd_config配置文件
ee /etc/ssh/sshd_config
找到
# Change to yes to enable built-in passWord authentication.
#PasswordAuthentication no //去掉前面'#'符号
改成
PasswordAuthentication yes添加
PermitRootLogin yes //为了可以使用root直接登录,从安全上不建议这么使用 。建议创建一个用户添加到wheel组中,使用su登录 。保存、重启sshd 。inetd[387]: ssh/tcp: bind: Address already in use.
检查是否在/etc/inetd.conf 中打开了
ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4
改成
#ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4
保存、重启 。/etc/inetd restart

    推荐阅读