freebsd5.4安装后ssh不能访问的解决方法

以前我安装freebsd4.x版本后只要在/etc/rc.conf中加入sshd_enable="YES"就可以使用,可自从用了5.4之后,问题就一大堆,除了ssh还有ftp和telnet,经过在网上查资料和重新配置后,ssh终于能访问了。

解决方法:修改/etc/ssh/sshd_config文件,将以下两行

# PasswordAuthentication no

#UseDNS yes

改成(注意要将前面的#号去掉):

PasswordAuthentication yes

UseDNS no

修改后重启服务器,用SecureCRT再次连接服务器ssh,正常,问题解决:)

One Comment

  1. hlddn说道:

    最好还是使用public key方式

Leave a Reply