s-N#m4\xSS05.1下调试成功, root限制登录 注意生成的rsa key文件格式要对
M9B$}*})||_d c0DOIT博客gT;nZNft+Aroot@postfix woo]# cat /etc/ssh/sshd_configDOIT博客2uG!lIW#u
DOIT博客&T
J5RQ8P+mm!Q9FUxPort 22
:_hB`._R.G5Yc0Protocol 2
4_&D9a'S3k [3s0ListenAddress 0.0.0.0DOIT博客C)T3MGR
DOIT博客-uJ,z ]K4e,t/f:V# Logging
o"r\#AK+q%N'g0# obsoletes QuietMode and FascistLogging
HvVe
sEr V0SyslogFacility AUTHPRIVDOIT博客
F'{2E$tm$s,pJ%b
LogLevel INFO
#jV^/g!K#y0DOIT博客 |q p{T*Z!@# Authentication:DOIT博客4[2_s!c UI$wgy
y4| \q-Z#bU_0#LoginGraceTime 2mDOIT博客j8elm6Te
PermitRootLogin noDOIT博客Y1iu@2f]
#StrictModes yesDOIT博客fX5\[*x't
#MaxAuthTries 6DOIT博客Jetc}
*PN?!N&p5`1M\L-F0#RSAAuthentication yes
.t'z-W~[*CwTo0PubkeyAuthentication yesDOIT博客*t}V h$OD
AuthorizedKeysFile .ssh/authorized_keys
*sA{nG`y$[0
dC:vG
WE7j0# For this to work you will also need host keys in /etc/ssh/ssh_known_hostsDOIT博客P,b[kN3_b0u
RhostsRSAAuthentication noDOIT博客\1v+[3{5uzC
# similar for protocol version 2DOIT博客g5x c;dYg6ys|
HostbasedAuthentication no
m7kd+k9X8O+B(y}0# Change to yes if you don't trust ~/.ssh/known_hosts for