当前位置: 主页 > 操作系统 > FreeBSD > 解决FreeBSD 5.4 安装后无法用SecureCRT连接

解决FreeBSD 5.4 安装后无法用SecureCRT连接

时间:2010-3-4来源:互联网 点击:
 前提:

  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

  这时需要修改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

站长资讯网
. TAG: freebsd SecureCRT
推荐内容最近更新人气排行
关于我们 | 友情链接 | 网址推荐 | 常用资讯 | 网站地图 | RSS | 留言