免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1420 | 回复: 4
打印 上一主题 下一主题

一个ssh的问题(fc4) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-09-29 12:56 |只看该作者 |倒序浏览
一台fc4,确认网络没问题,别的机器可以访问http
sshd配置了之后,本机可以登录,但其他的机器用winputty登录不上


本来没有修改配置,后来试图修改了一下,还是不能上

请问这个需要怎么配才好



sshd_config文件如下:

  1. #    $OpenBSD: sshd_config,v 1.70 2004/12/23 23:11:00 djm 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 24321
  10. #Protocol 2,1
  11. Protocol 2
  12. #AddressFamily any
  13. ListenAddress 222.29.216.138
  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. #AllowTcpForwarding yes
  73. #GatewayPorts no
  74. #X11Forwarding no
  75. X11Forwarding yes
  76. #X11DisplayOffset 10
  77. #X11UseLocalhost yes
  78. #PrintMotd yes
  79. #PrintLastLog yes
  80. #TCPKeepAlive yes
  81. #UseLogin no
  82. #UsePrivilegeSeparation yes
  83. #PermitUserEnvironment no
  84. #Compression yes
  85. #ClientAliveInterval 0
  86. #ClientAliveCountMax 3
  87. #UseDNS yes
  88. #PidFile /var/run/sshd.pid
  89. #MaxStartups 10
  90. #ShowPatchLevel no

  91. # no default banner path
  92. #Banner /some/path

  93. # override default of no subsystems
  94. Subsystem    sftp    /usr/libexec/openssh/sftp-server

复制代码
[/code]

论坛徽章:
0
2 [报告]
发表于 2005-09-29 13:03 |只看该作者

一个ssh的问题(fc4)

telnet 22端口是否正常?

论坛徽章:
5
巳蛇
日期:2013-08-28 09:26:15CU十二周年纪念徽章
日期:2013-10-24 15:41:34射手座
日期:2013-10-31 09:13:04射手座
日期:2014-02-11 13:18:34天秤座
日期:2014-03-25 09:22:28
3 [报告]
发表于 2005-09-29 13:16 |只看该作者

一个ssh的问题(fc4)

service iptables stop. 再试

论坛徽章:
0
4 [报告]
发表于 2005-09-29 13:51 |只看该作者

一个ssh的问题(fc4)

sshd第一次登陆的时候会有一点问题,你可以尝试删除.ssh/know_hosts中相关用户的记录,然后尝试重新登陆,一般就可以解决问题。

论坛徽章:
0
5 [报告]
发表于 2005-09-30 09:51 |只看该作者

一个ssh的问题(fc4)

[quote]原帖由 "我爱钓鱼"]service iptables stop. 再试[/quote 发表:

good
I can connect
but how can I configuration the firewall.
thank u!

btw:the sshd port is 24321
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP