免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
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
21 [报告]
发表于 2013-06-18 07:59 |只看该作者
我觉得问题在root上,你还是换普通用户ssh连接测试下

论坛徽章:
0
22 [报告]
发表于 2013-06-18 08:03 |只看该作者
本帖最后由 jasonys8 于 2013-06-18 08:05 编辑
chenyx 发表于 2013-06-18 07:59
我觉得问题在root上,你还是换普通用户ssh连接测试下


普通用户还是那个问题 我感觉特别奇怪的就是端口正常 服务也能起的来 。。还有楼上说的那个xinetd我并没有开着
  1. debug1: read_passphrase: can't open /dev/tty: No such device or address
  2. Host key verification failed.
复制代码

论坛徽章:
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
23 [报告]
发表于 2013-06-18 08:20 |只看该作者
  1. -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o GlobalKnownHostsFile=/dev/null
复制代码
你添加上面的参数ssh测试下看看

论坛徽章:
0
24 [报告]
发表于 2013-06-18 08:33 |只看该作者
本帖最后由 jasonys8 于 2013-06-18 08:34 编辑
chenyx 发表于 2013-06-18 08:20
你添加上面的参数ssh测试下看看
  1. Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
  2. Permission denied, please try again.
  3. Permission denied, please try again.
  4. Permission denied (publickey,gssapi-with-mic,password).
复制代码
这是非ROOT用户测试结果 ROOT测结果也一样

论坛徽章:
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
25 [报告]
发表于 2013-06-18 08:36 |只看该作者
本帖最后由 chenyx 于 2013-06-18 08:39 编辑

普通用户下,
  1. ll -d ~/.ssh
  2. ll  ~/.ssh
复制代码
看看.ssh目录的权限.
另外,说明一下你的系统版本,还有,将你的sshd_config内容贴一下吧

论坛徽章:
0
26 [报告]
发表于 2013-06-18 08:49 |只看该作者
chenyx 发表于 2013-06-18 08:36
普通用户下,看看.ssh目录的权限.
另外,说明一下你的系统版本,还有,将你的sshd_config内容贴一下吧


ll -d ~/.ssh结果
  1. drwx------ 2 tms tms 4096 2013-06-18 /home/tms/.ssh
复制代码
ll ~/.ssh结果 没有文件

版本是
  1. CentOS release 5.8
复制代码
sshd_config内容
  1. #       $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $

  2. # This is the sshd server system-wide configuration file.  See
  3. # sshd_config(5) for more information.

  4. # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

  5. # The strategy used for options in the default sshd_config shipped with
  6. # OpenSSH is to specify options with their default value where
  7. # possible, but leave them commented.  Uncommented options change a
  8. # default value.

  9. #Port 22
  10. #Protocol 2,1
  11. Protocol 2
  12. #AddressFamily any
  13. #ListenAddress 0.0.0.0
  14. #ListenAddress ::

  15. # HostKey for protocol version 1
  16. #HostKey /etc/ssh/ssh_host_key
  17. # HostKeys for protocol version 2
  18. #HostKey /etc/ssh/ssh_host_rsa_key
  19. #HostKey /etc/ssh/ssh_host_dsa_key

  20. # Lifetime and size of ephemeral version 1 server key
  21. #KeyRegenerationInterval 1h
  22. #ServerKeyBits 768

  23. # Logging
  24. # obsoletes QuietMode and FascistLogging
  25. #SyslogFacility AUTH
  26. SyslogFacility AUTHPRIV
  27. #LogLevel INFO

  28. # Authentication:

  29. #LoginGraceTime 2m
  30. PermitRootLogin yes
  31. #StrictModes yes
  32. #MaxAuthTries 6

  33. #RSAAuthentication yes
  34. #PubkeyAuthentication yes
  35. #AuthorizedKeysFile     .ssh/authorized_keys


  36. # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
  37. #RhostsRSAAuthentication no
  38. # similar for protocol version 2
  39. #HostbasedAuthentication no
  40. # Change to yes if you don't trust ~/.ssh/known_hosts for
  41. # RhostsRSAAuthentication and HostbasedAuthentication
  42. #IgnoreUserKnownHosts no
  43. # Don't read the user's ~/.rhosts and ~/.shosts files
  44. #IgnoreRhosts yes

  45. # To disable tunneled clear text passwords, change to no here!
  46. #PasswordAuthentication yes
  47. #PermitEmptyPasswords no
  48. PasswordAuthentication yes

  49. # Change to no to disable s/key passwords
  50. #ChallengeResponseAuthentication yes
  51. ChallengeResponseAuthentication no

  52. # Kerberos options
  53. #KerberosAuthentication no
  54. #KerberosOrLocalPasswd yes
  55. #KerberosTicketCleanup yes
  56. #KerberosGetAFSToken no

  57. # GSSAPI options
  58. #GSSAPIAuthentication no
  59. GSSAPIAuthentication yes
  60. #GSSAPICleanupCredentials yes
  61. GSSAPICleanupCredentials yes

  62. # Set this to 'yes' to enable PAM authentication, account processing,
  63. # and session processing. If this is enabled, PAM authentication will
  64. # be allowed through the ChallengeResponseAuthentication mechanism.
  65. # Depending on your PAM configuration, this may bypass the setting of
  66. # PasswordAuthentication, PermitEmptyPasswords, and
  67. # "PermitRootLogin without-password". If you just want the PAM account and
  68. # session checks to run without PAM authentication, then enable this but set
  69. # ChallengeResponseAuthentication=no
  70. #UsePAM no
  71. UsePAM yes

  72. # Accept locale-related environment variables
  73. AcceptEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
  74. AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
  75. AcceptEnv LC_IDENTIFICATION LC_ALL
  76. #AllowTcpForwarding yes
  77. #GatewayPorts no
  78. #X11Forwarding no
  79. X11Forwarding yes
  80. #X11DisplayOffset 10
  81. #X11UseLocalhost yes
  82. #PrintMotd yes
  83. #PrintLastLog yes
  84. #TCPKeepAlive yes
  85. #UseLogin no
  86. #UsePrivilegeSeparation yes
  87. #PermitUserEnvironment no
  88. #Compression delayed
  89. #ClientAliveInterval 0
  90. #ClientAliveCountMax 3
  91. #ShowPatchLevel no
  92. #UseDNS yes
  93. #PidFile /var/run/sshd.pid
  94. #MaxStartups 10
  95. #PermitTunnel no
  96. #ChrootDirectory none

  97. # no default banner path
  98. #Banner /some/path

  99. # override default of no subsystems
  100. Subsystem       sftp    /usr/libexec/openssh/sftp-server
复制代码

论坛徽章:
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
27 [报告]
发表于 2013-06-18 08:57 |只看该作者
看你的配置,你采用的就是默认配置,太诡异了.
你ping localhost看下是不是127.0.0.1

论坛徽章:
0
28 [报告]
发表于 2013-06-18 09:02 |只看该作者
chenyx 发表于 2013-06-18 08:57
看你的配置,你采用的就是默认配置,太诡异了.
你ping localhost看下是不是127.0.0.1


是啊。。。我也觉得非常的诡异

localhost就是127

还有我现在CTRL+C不能正常结束终束终端 可不可能跟这个有关。。。比如我刚才PING了本机 现在他一直在PING 我按CTRL+C没有作用

论坛徽章:
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
29 [报告]
发表于 2013-06-18 09:08 |只看该作者
ctrl+c不起作用,那会不会是你的键盘的问题?
你检查下/var/log/secure和/var/log/messages日志看看有没有异常.
另外,你测试下setenforce 0,暂时关闭下selinux看看

论坛徽章:
0
30 [报告]
发表于 2013-06-18 09:15 |只看该作者
chenyx 发表于 2013-06-18 09:08
ctrl+c不起作用,那会不会是你的键盘的问题?
你检查下/var/log/secure和/var/log/messages日志看看有没有异 ...


secure日志前面我贴过了。。还是那个结果 现在问了好多人全都不知道是为啥 难道这是要重装系统的节奏吗{:3_191:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP