免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: jasonys8
打印 上一主题 下一主题

[服务应用] 这问题折腾我一天了。。555.。。求助啊各路大神 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2013-06-17 19:23 |只看该作者
chenyx 发表于 2013-06-17 18:41
你将/etc/ssh目录下的ssh_host*文件mv到别的目录,重新启动ssh服务,让他重新生成key,看看能登陆上不


也试过。。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
12 [报告]
发表于 2013-06-17 19:35 |只看该作者

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
13 [报告]
发表于 2013-06-17 22:02 |只看该作者
回复 10# jasonys8

1. 用fuser检查一下是否有其他进程占用/dev/tty;
2. 确认.ssh的目录是否是下面的权限;
drwx------. 2 root root 4096 Jun 17 21:17 .ssh

3. 检查端口22是否是LISTEN的状态,和iptable是否开放22端口:
# service iptables status | grep -i 22
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 

   

论坛徽章:
0
14 [报告]
发表于 2013-06-17 22:27 |只看该作者
do following:
/etc/init.d/xinetd stop

than SSH
if works, you xinetd config has problem

论坛徽章:
0
15 [报告]
发表于 2013-06-17 22:28 |只看该作者
do following:
/etc/init.d/xinetd stop

than SSH
if works, you xinetd config has problem

论坛徽章:
0
16 [报告]
发表于 2013-06-18 07:33 |只看该作者
chenyx 发表于 2013-06-17 18:41
你将/etc/ssh目录下的ssh_host*文件mv到别的目录,重新启动ssh服务,让他重新生成key,看看能登陆上不


也试过。。

论坛徽章:
0
17 [报告]
发表于 2013-06-18 07:36 |只看该作者
本帖最后由 jasonys8 于 2013-06-18 07:37 编辑

先谢谢楼上几位。。。

楼上几位给出的方法我都已经试过了。。问题依旧存在 现在root ssh本机的时候是这个提示
  1. debug2: we did not send a packet, disable method
  2. debug3: authmethod_lookup publickey
  3. debug3: remaining preferred: keyboard-interactive,password
  4. debug3: authmethod_is_enabled publickey
  5. debug1: Next authentication method: publickey
  6. debug1: Trying private key: /root/.ssh/identity
  7. debug3: no such identity: /root/.ssh/identity
  8. debug1: Trying private key: /root/.ssh/id_rsa
  9. debug3: no such identity: /root/.ssh/id_rsa
  10. debug1: Trying private key: /root/.ssh/id_dsa
  11. debug3: no such identity: /root/.ssh/id_dsa
  12. debug2: we did not send a packet, disable method
  13. debug3: authmethod_lookup password
  14. debug3: remaining preferred: ,password
  15. debug3: authmethod_is_enabled password
  16. debug1: Next authentication method: password
  17. debug1: read_passphrase: can't open /dev/tty: No such device or address
  18. debug3: packet_send2: adding 64 (len 49 padlen 15 extra_pad 64)
  19. debug2: we sent a password packet, wait for reply
  20. debug1: Authentications that can continue: publickey,gssapi-with-mic,password
  21. Permission denied, please try again.
  22. debug1: read_passphrase: can't open /dev/tty: No such device or address
  23. debug3: packet_send2: adding 64 (len 49 padlen 15 extra_pad 64)
  24. debug2: we sent a password packet, wait for reply
  25. debug1: Authentications that can continue: publickey,gssapi-with-mic,password
  26. Permission denied, please try again.
  27. debug1: read_passphrase: can't open /dev/tty: No such device or address
  28. debug3: packet_send2: adding 64 (len 49 padlen 15 extra_pad 64)
  29. debug2: we sent a password packet, wait for reply
  30. debug1: Authentications that can continue: publickey,gssapi-with-mic,password
  31. debug2: we did not send a packet, disable method
  32. debug1: No more authentication methods to try.
  33. Permission denied (publickey,gssapi-with-mic,password).
复制代码

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
18 [报告]
发表于 2013-06-18 07:44 |只看该作者
你普通用户ssh登陆有问题没有?

论坛徽章:
0
19 [报告]
发表于 2013-06-18 07:52 |只看该作者
这是一段日志
  1. Jun 18 07:50:46 dev_tms6 sshd[4080]: Server listening on :: port 22.
  2. Jun 18 07:50:46 dev_tms6 sshd[4080]: Server listening on 0.0.0.0 port 22.
  3. Jun 18 07:50:52 dev_tms6 sshd[4083]: Failed password for root from 127.0.0.1 port 59727 ssh2
  4. Jun 18 07:50:52 dev_tms6 sshd[4083]: Failed password for root from 127.0.0.1 port 59727 ssh2
  5. Jun 18 07:50:52 dev_tms6 sshd[4084]: Connection closed by 127.0.0.1
  6. Jun 18 07:51:44 dev_tms6 sshd[4080]: Received signal 15; terminating.
  7. Jun 18 07:51:44 dev_tms6 sshd[4104]: Server listening on :: port 22.
  8. Jun 18 07:51:44 dev_tms6 sshd[4104]: Server listening on 0.0.0.0 port 22.
  9. Jun 18 07:51:50 dev_tms6 sshd[4107]: Failed password for root from 127.0.0.1 port 59728 ssh2
  10. Jun 18 07:51:50 dev_tms6 sshd[4107]: Failed password for root from 127.0.0.1 port 59728 ssh2
  11. Jun 18 07:51:50 dev_tms6 sshd[4108]: Connection closed by 127.0.0.1
复制代码

论坛徽章:
0
20 [报告]
发表于 2013-06-18 07:57 |只看该作者
chenyx 发表于 2013-06-18 07:44
你普通用户ssh登陆有问题没有?


我觉得现在问题出在tty上。。。但新建了以后也不行啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP