加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

linux 用SSH连接No further authentication methods available"问题

(2013-06-20 17:14:43)
标签:

linux

分类: Linux
 "No further authentication methods available"问题
FreeBSD 6.0-RELEASE,未编译内核,2006年2月26日安装的,之前似乎没有用ssh登录过,9月5日以ssh登录,出


server responded"No further authentication methods available"

no more authentication methods available

的提示信息,无法登陆,我用的验证模式是password。
解决办法:以root身份在控制台登录,用vi或其它编辑器修改/etc/ssh/sshd_config文件,将
#PasswordAuthentication no
一行改成
PasswordAuthentication yes
保存修改后退出。重起sshd:
myhost# kill -HUP `cat /var/run/sshd.pid`
即可。

修改/etc/ssh/sshd_config文件时注意检查一下PermitRootLogin的配置,如果是
PermitRootLogin yes
可能会带来安全隐患,建议将此句用“#”注释掉,或者改成
PermitRootLogin no
缺省是no。

当然如果确实需要用root登录,别忘了给root加一个复杂一点的密码,没有密码是不能通过登录的,除非

PermitEmptyPasswords设成了yes,不过这是严重不推荐的。

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有