坐标深圳,测试经理,干了十年测试,公号"简尚" ,博客isTester.com ,关注「软件测试从业者综合能力提升 & 职场人每日进阶」,个人微信957863300

Linux 连接服务器,报错 Too many authentication failures for root

上一篇 / 下一篇  2019-02-28 16:50:10 / 个人分类:linux


o a})G9a5|#S/k15282286

AY:Zj]1F3I)r15282286

51Testing软件测试网YE+u uu4lc
51Testing软件测试网}:RO F @q

这是最近遇到比较频繁的一个问题。

P` J2o.~Pg15282286

很多时候,通过ssh工具连接Linux服务器

6^,@{$s&^(]'E)q:]15282286

或报错Too many authentication failures for root51Testing软件测试网 v6` m/Kz [-Te

随手,记录到此

d9N8Mva15282286


,DMC2G0yU1r1528228651Testing软件测试网+i[E$z!N is(C.] y!X


E@OIZ-y!W8Qyj1528228651Testing软件测试网7]5`#L"Z{ i

#编辑文件/etc/ssh/sshd_config51Testing软件测试网jIblI

#找到关键词MaxAuthTries51Testing软件测试网+rQ!f%[K'q;B

#vim /etc/ssh/sshd_config51Testing软件测试网n/qL+b ?

51Testing软件测试网$bd?r,GMs
51Testing软件测试网$@WU Bh


r_f y+w9c/m1528228651Testing软件测试网2~l VZ y _F&N#X

51Testing软件测试网c8t+IxO4_eh&\O

!Re P)vhE15282286

# Logging51Testing软件测试网 a3g&p"Mh]*n:i2k,L

# obsoletes QuietMode and FascistLogging

3E#i$R1fD15282286

#LogLevel INFO51Testing软件测试网P^3ef-I a2W


5NSPLH1528228651Testing软件测试网#Cc8P1ou Y)P)gtF

# Authentication:

4B%l.[ d7gs'pw[15282286


;L[ C]2SRzn+F15282286

mt$V3?fa!pm15282286

#LoginGraceTime 2m51Testing软件测试网wK)v*z*L,h?+u6n8S,y

#StrictModes yes

5J&{+nPT4j-f*X15282286

StrictModes no

C~(I5A6F0yY2m*R7~15282286

#MaxAuthTries 651Testing软件测试网3]+OXKi(O.S,i

MaxAuthTries 3    #把这里的值改大一点即可,比如30

D t#Apn4ia$j15282286

#MaxSessions 10

(F:u!Ul;Wm15282286

51Testing软件测试网$y5eWb)J`m/e

\/x8p5L p$b[ e15282286

RSAAuthentication yes51Testing软件测试网_7dI&|;O6Wo6J

PubkeyAuthentication yes

6W8M'cI-c/{15282286

TAG: 软件测试 Linux linux

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar