免费注册 查看新帖 |

Chinaunix

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

SSH maxauthtries参数不生效!! [复制链接]

论坛徽章:
0
31 [报告]
发表于 2010-03-10 15:11 |只看该作者
顶 doging 好同志 又学习了{:2_168:}

论坛徽章:
0
32 [报告]
发表于 2010-03-10 15:35 |只看该作者
偶快疯掉了!!  因为 需要修改的地方本来就不多,  所以不会改错啊!!  前面我又刚重试过,  还是老样子!!
看看我昨天下午发的抓屏原始记录就知道了,  文件都没改错啊!! sshd进程也重起了!!
另外, login中的retries值在telnet方式也的确是生效的, 但对SSH方式至少目前还是没有什么效果!!

论坛徽章:
0
33 [报告]
发表于 2010-03-10 16:27 |只看该作者
那就不知道了,可能O的ssh patch版本比你的高{:2_168:}
不过你们leader的要求也太高了,允许这么多错误次数,有点BT呀


Solaris 10
137137-09 5.10: kernel patch

137138-09 5.10 x86 kernel patch

128318-01 5.10: ssh-keygen patch

128319-01 5.10_x86: ssh-keygen patch

119246-34 5.10: Manual Page updates for Solaris 10

119247-34 5.10_x86: Manual Page updates for Solaris 10

论坛徽章:
0
34 [报告]
发表于 2010-03-10 18:58 |只看该作者
怎么办啊!!?  觉得只差最后一步了啊!!   就是不知道还是卡在哪里了啊!!!?

论坛徽章:
0
35 [报告]
发表于 2010-03-11 08:50 |只看该作者
1. 第一种方法:
#/etc/rc2.d/K03sshd stop  
#/etc/rc3.d/S89sshd start

2.第二种方法:
#/etc/rc3.d/ ...
lylklb 发表于 2010-03-09 17:25



    我怎么觉得你是solaris 9系统,请再确认一下系统版本,doging兄才好继续提供支持

uname -a
cat /etc/release

论坛徽章:
0
36 [报告]
发表于 2010-03-11 10:33 |只看该作者
楼主帖出你的pam.conf看看
more /etc/pam.conf

论坛徽章:
0
37 [报告]
发表于 2010-03-11 11:30 |只看该作者
多谢兄台如此支持关照啊!! 好人啊!!
系统pam.conf应该是缺省的,  没改动过!!

root@sunv480-2 #      
root@sunv480-2 #
root@sunv480-2 # uname -a
SunOS sunv480-2 5.9 Generic_117171-08 sun4u sparc SUNW,Sun-Fire-480R
root@sunv480-2 #
root@sunv480-2 # cat /etc/release
                        Solaris 9 4/04 s9s_u6wos_08a SPARC
           Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 22 March 2004
root@sunv480-2 #
root@sunv480-2 #
root@sunv480-2 # ls -l /etc/pam.conf
-rw-r--r--   1 root     sys         2968 Nov 10  2004 /etc/pam.conf
root@sunv480-2 #
root@sunv480-2 #
root@sunv480-2 # more /etc/pam.conf
#
#ident  "@(#)pam.conf   1.20    02/01/23 SMI"
#
# Copyright 1996-2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# PAM configuration
#
# Unless explicitly defined, all services use the modules
# defined in the "other" section.
#
# Modules are defined with relative pathnames, i.e., they are
# relative to /usr/lib/security/$ISA. Absolute path names, as
# present in this file in previous releases are still acceptable.
#
# Authentication management
#
# login service (explicit because of pam_dial_auth)
#
login   auth requisite          pam_authtok_get.so.1
login   auth required           pam_dhkeys.so.1
login   auth required           pam_unix_auth.so.1
login   auth required           pam_dial_auth.so.1
#
# rlogin service (explicit because of pam_rhost_auth)
#
rlogin  auth sufficient         pam_rhosts_auth.so.1
rlogin  auth requisite          pam_authtok_get.so.1
rlogin  auth required           pam_dhkeys.so.1
rlogin  auth required           pam_unix_auth.so.1
#
# rsh service (explicit because of pam_rhost_auth,
# and pam_unix_auth for meaningful pam_setcred)
#
rsh     auth sufficient         pam_rhosts_auth.so.1
rsh     auth required           pam_unix_auth.so.1
#
# PPP service (explicit because of pam_dial_auth)
#
ppp     auth requisite          pam_authtok_get.so.1
ppp     auth required           pam_dhkeys.so.1
ppp     auth required           pam_unix_auth.so.1
ppp     auth required           pam_dial_auth.so.1
#
# Default definitions for Authentication management
# Used when service name is not explicitly mentioned for authenctication
#
other   auth requisite          pam_authtok_get.so.1
other   auth required           pam_dhkeys.so.1
other   auth required           pam_unix_auth.so.1
#
# passwd command (explicit because of a different authentication module)
#
passwd  auth required           pam_passwd_auth.so.1
#
# cron service (explicit because of non-usage of pam_roles.so.1)
#
cron    account required        pam_projects.so.1
cron    account required        pam_unix_account.so.1
#
# Default definition for Account management
# Used when service name is not explicitly mentioned for account management
#
other   account requisite       pam_roles.so.1
other   account required        pam_projects.so.1
other   account required        pam_unix_account.so.1
#
# Default definition for Session management
# Used when service name is not explicitly mentioned for session management
#
other   session required        pam_unix_session.so.1
#
# Default definition for  Password management
# Used when service name is not explicitly mentioned for password management
#
other   password required       pam_dhkeys.so.1
other   password requisite      pam_authtok_get.so.1
other   password requisite      pam_authtok_check.so.1
other   password required       pam_authtok_store.so.1
#
# Support for Kerberos V5 authentication (uncomment to use Kerberos)
#
#rlogin         auth optional           pam_krb5.so.1 try_first_pass
#login          auth optional           pam_krb5.so.1 try_first_pass
#other          auth optional           pam_krb5.so.1 try_first_pass
#cron           account optional        pam_krb5.so.1
#other          account optional        pam_krb5.so.1
#other          session optional        pam_krb5.so.1
#other          password optional       pam_krb5.so.1 try_first_pass
root@sunv480-2 #   
root@sunv480-2 #

论坛徽章:
0
38 [报告]
发表于 2010-03-11 11:36 |只看该作者
没有s9环境,没办法测试

要不先打补丁试试吧,说不定是个bug

Solaris 9
114356-16 5.9: /usr/bin/ssh patch

114357-15 5.9_x86: /usr/bin/ssh patch

122300-35 5.9: Kernel Patch

122301-35 5.9_x86: Kernel Patch

论坛徽章:
0
39 [报告]
发表于 2010-03-11 11:37 |只看该作者
果然是9.{:2_174:} 没环境

论坛徽章:
0
40 [报告]
发表于 2010-03-11 11:58 |只看该作者
{:2_174:}{:2_176:}{:2_170:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP