OpenSSH服务器端的配置文件各常用参数含义

/etc/ssh/sshd_config:

注:前面加#的代表默认配置

基本配置
#Port 22                     #监听的端口;
ListenAddress 0.0.0.0        #监听的地址,0.0.0.0代表监听本地所有已经启用的IP;
Protocol 2                   #ssh协议版本号;
SyslogFacility AUTHPRIV      #日志的配置;涉及syslog,这里不讨论。
LogLevel INFO                #日志级别;
PidFile /var/run/sshd.pid    #PID文件;

认证:
Allow user1 user2...         #允许登录的用户
Allow group1 group2...       #允许登录的组
Deny user1 user2...          #禁止登录的用户
Deny group1 group2...        #登陆登录的组
LoginGraceTime 2m            #输入超时(登录提示符);
#PermitRootLogin yes         #允许ROOT登录;
StrictModes yes              #严格模式,如果用户没有家目录,则不允许登录;
MaxAuthTries 6               #最大密码输错次数,达到次数后会有一段时间不能登录;
MaxSessions 10               #最大同时打开的会话连接数;
RSAAuthentication yes        #是否启用RSA认证;
PubkeyAuthentication yes     #是否启用公钥认证;
AuthorizedKeysFile           #公钥认证文件;
PasswordAuthentication no    #是否启用密码认证;
PermitEmptyPasswords no      #是否允许空密码登录;
UsePAM yes                   #是否使用PAM认证;
PrintMotd yes                #是否打印/etc/motd文件;
PrintLastLog yes             #是否打印上次登陆的日志;
ClientAliveInterval 600      #会话超时时间(秒);
ClientAliveCountMax 3        #会话超时判断次数,如果判断3次超时(3*600),那么就断开连接;
UseDNS no                    #是否使用DNS反解主机名;

附:使用ssh的最佳实践,希望大家仔细看一遍。

1)只使用ssh协议版本2
2)设置(允许访问/禁止访问)的用户:
Allowusers user1 user2
白名单
denyUser user3 user4
黑名单
3)配置空闲超时长。
ClientAliveCountMax 300
ClientAliveInterval  0
4)使用iptables设置ssh服务安全访问策略
5)改变ssh服务监听端口号,监听固定的IP
port 22;勿使用默认22端口
Listaddress 192.168.1.5
ListenAddress 202.54.1.5
6)使用ssh的密码生成函数生成密码,将密码保存到自己的加密的U盘上;
genpasswd(){
local 1=$1
[ "$1" == "" ]&& 1=20
tr -dc A-Za-z0-9_</dev/urandom | head -c ${1} | xargs
}
    使用足够长足够复杂的密码,且定期更换。
7)推荐使用公钥认证。
8)关闭空密码登录;
9)进制root用户登录,需要登录请使用su-
10)rate-limit incoming port # 22 COnnections
  限制ssh访问频度
11)use log analyzer
记录好日志,经常做日志分析。

再附一下日志及查看方法:

1./var/log/wtmp:用户成功登录的日志

#last 命令查看

2./var/log/btmp:用户登录失败的日志

#lastb 命令查看

3.查看所有用户上次的登录时间

#lastlog [-u User]


这是我的主机被尝试登录的记录,各位可以看一下,安全防范一定要做好~:

[[email protected] ~]# lastb
root     ssh:notty    114.250.204.95   Sun Nov 22 14:38 - 14:38  (00:00)    
bin      ssh:notty    158.85.202.71    Sun Nov 22 08:33 - 08:33  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:33 - 08:33  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:33 - 08:33  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
test     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
test     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
test     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
test     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
postgres ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
postgres ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
root     ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
tomcat   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
tomcat   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
ubuntu   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
ubuntu   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
ubuntu   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
ubuntu   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
oracle   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
oracle   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
oracle   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
oracle   ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
a        ssh:notty    158.85.202.71    Sun Nov 22 08:32 - 08:32  (00:00)    
a        ssh:notty    158.85.202.71    Sun Nov 22 08:31 - 08:31  (00:00)    
root     ssh:notty    122.243.34.216   Sun Nov 22 06:31 - 06:31  (00:00)    
kim      ssh:notty    77.47.135.212    Sun Nov 22 03:08 - 03:08  (00:00)    
kim      ssh:notty    77.47.135.212    Sun Nov 22 03:08 - 03:08  (00:00)    
a        ssh:notty    103.63.212.167   Sun Nov 22 02:34 - 02:34  (00:00)    
a        ssh:notty    103.63.212.167   Sun Nov 22 02:34 - 02:34  (00:00)    
debian   ssh:notty    202.205.16.62    Sat Nov 21 23:37 - 23:37  (00:00)    
debian   ssh:notty    202.205.16.62    Sat Nov 21 23:36 - 23:36  (00:00)    
cubie    ssh:notty    202.205.16.62    Sat Nov 21 23:19 - 23:19  (00:00)    
cubie    ssh:notty    202.205.16.62    Sat Nov 21 23:19 - 23:19  (00:00)    
csm      ssh:notty    202.205.16.62    Sat Nov 21 23:10 - 23:10  (00:00)    
csm      ssh:notty    202.205.16.62    Sat Nov 21 23:10 - 23:10  (00:00)    
cmsftp   ssh:notty    202.205.16.62    Sat Nov 21 23:06 - 23:06  (00:00)    
cmsftp   ssh:notty    202.205.16.62    Sat Nov 21 23:06 - 23:06  (00:00)    
rot      ssh:notty    114.250.204.95   Sat Nov 21 20:08 - 20:08  (00:00)    
         ssh:notty    114.250.204.95   Sat Nov 21 20:07 - 20:07  (00:00)    
root     ssh:notty    115.159.77.15    Sat Nov 21 19:41 - 19:41  (00:00)    
root     ssh:notty    115.159.77.15    Sat Nov 21 19:40 - 19:40  (00:00)    
root     ssh:notty    115.159.77.15    Sat Nov 21 19:40 - 19:40  (00:00)    
a        ssh:notty    218.248.13.234   Sat Nov 21 15:13 - 15:13  (00:00)    
a        ssh:notty    218.248.13.234   Sat Nov 21 15:13 - 15:13  (00:00)    
suser    ssh:notty    121.5.20.120     Sat Nov 21 08:30 - 08:30  (00:00)    
suser    ssh:notty    121.5.20.120     Sat Nov 21 08:30 - 08:30  (00:00)    
support  ssh:notty    121.5.20.120     Sat Nov 21 08:15 - 08:15  (00:00)    
support  ssh:notty    121.5.20.120     Sat Nov 21 08:15 - 08:15  (00:00)    
root     ssh:notty    122.234.135.36   Fri Nov 20 15:47 - 15:47  (00:00)    
root     ssh:notty    183.159.91.185   Fri Nov 20 09:36 - 09:36  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:30 - 09:30  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:30 - 09:30  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    91.201.236.114   Fri Nov 20 09:29 - 09:29  (00:00)    
root     ssh:notty    115.204.26.80    Fri Nov 20 09:14 - 09:14  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 03:03 - 03:03  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 03:02 - 03:02  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 03:01 - 03:01  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 03:00 - 03:00  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 03:00 - 03:00  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:59 - 02:59  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:58 - 02:58  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:57 - 02:57  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:56 - 02:56  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:55 - 02:55  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:55 - 02:55  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:54 - 02:54  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:53 - 02:53  (00:00)    
test     ssh:notty    121.192.177.203  Fri Nov 20 02:52 - 02:52  (00:00)    
test     ssh:notty    121.192.177.203  Fri Nov 20 02:52 - 02:52  (00:00)    
oracle   ssh:notty    121.192.177.203  Fri Nov 20 02:51 - 02:51  (00:00)    
oracle   ssh:notty    121.192.177.203  Fri Nov 20 02:51 - 02:51  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:51 - 02:51  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:50 - 02:50  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:49 - 02:49  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:48 - 02:48  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:47 - 02:47  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:46 - 02:46  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:46 - 02:46  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:45 - 02:45  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:44 - 02:44  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:43 - 02:43  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:42 - 02:42  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:41 - 02:41  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:41 - 02:41  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:40 - 02:40  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:39 - 02:39  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:38 - 02:38  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:37 - 02:37  (00:00)    
root     ssh:notty    121.192.177.203  Fri Nov 20 02:37 - 02:37  (00:00)    
root     ssh:notty    45.32.69.227     Fri Nov 20 00:52 - 00:52  (00:00)    
root     ssh:notty    45.32.69.227     Fri Nov 20 00:52 - 00:52  (00:00)    
sshd     ssh:notty    45.32.69.227     Fri Nov 20 00:52 - 00:52  (00:00)    
intel    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
intel    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
ubnt     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
ubnt     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
root     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
admin    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
admin    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
user     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
user     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
guest    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
guest    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
test     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
test     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
D-Link   ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
D-Link   ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
admin    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
admin    ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
root     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
root     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
root     ssh:notty    45.32.69.227     Fri Nov 20 00:51 - 00:51  (00:00)    
root     ssh:notty    114.250.204.95   Thu Nov 19 13:38 - 13:38  (00:00)    
root     ssh:notty    114.250.204.95   Thu Nov 19 12:35 - 12:35  (00:00)    
root     ssh:notty    125.106.61.20    Thu Nov 19 04:49 - 04:49  (00:00)    
PlcmSpIp ssh:notty    182.71.129.165   Wed Nov 18 22:36 - 22:36  (00:00)    
PlcmSpIp ssh:notty    182.71.129.165   Wed Nov 18 22:36 - 22:36  (00:00)    
root     ssh:notty    121.15.31.73     Wed Nov 18 13:02 - 13:02  (00:00)    
root     ssh:notty    125.118.201.132  Tue Nov 17 22:48 - 22:48  (00:00)    
root     ssh:notty    183.146.121.74   Tue Nov 17 19:24 - 19:24  (00:00)    
root     ssh:notty    123.96.167.198   Tue Nov 17 11:01 - 11:01  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:39 - 16:39  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:39 - 16:39  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
root     ssh:notty    198.71.58.200    Sun Nov 15 16:38 - 16:38  (00:00)    
pi       ssh:notty    51.254.133.154   Sun Nov 15 08:16 - 08:16  (00:00)    
pi       ssh:notty    51.254.133.154   Sun Nov 15 08:16 - 08:16  (00:00)    
root     ssh:notty    210.211.99.242   Sat Nov 14 23:13 - 23:13  (00:00)    
root     ssh:notty    210.211.99.242   Sat Nov 14 23:13 - 23:13  (00:00)    
root     ssh:notty    125.113.10.154   Fri Nov 13 17:14 - 17:14  (00:00)    
root     ssh:notty    169.50.6.153     Fri Nov 13 15:04 - 15:04  (00:00)    
root     ssh:notty    115.210.202.73   Fri Nov 13 13:21 - 13:21  (00:00)    
dff      ssh:notty    37.228.134.132   Fri Nov 13 12:02 - 12:02  (00:00)    
dff      ssh:notty    37.228.134.132   Fri Nov 13 12:02 - 12:02  (00:00)    
zhangyan ssh:notty    37.228.134.132   Fri Nov 13 12:02 - 12:02  (00:00)    
zhangyan ssh:notty    37.228.134.132   Fri Nov 13 12:02 - 12:02  (00:00)    
root     ssh:notty    199.180.118.66   Thu Nov 12 23:43 - 23:43  (00:00)    
admin    ssh:notty    115.231.26.31    Thu Nov 12 20:59 - 20:59  (00:00)    
admin    ssh:notty    115.231.26.31    Thu Nov 12 20:59 - 20:59  (00:00)    
root     ssh:notty    114.250.205.99   Thu Nov 12 17:06 - 17:06  (00:00)    
root     ssh:notty    123.143.79.107   Thu Nov 12 07:09 - 07:09  (00:00)    
root     ssh:notty    123.143.79.107   Thu Nov 12 07:09 - 07:09  (00:00)    
root     ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
root     ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
root     ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
root     ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
root     ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
dff      ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
dff      ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
zhangyan ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
zhangyan ssh:notty    123.143.79.107   Thu Nov 12 07:08 - 07:08  (00:00)    
root     ssh:notty    218.74.77.12     Thu Nov 12 02:37 - 02:37  (00:00)    
root     ssh:notty    212.31.99.210    Thu Nov 12 02:27 - 02:27  (00:00)    
root     ssh:notty    115.212.245.150  Wed Nov 11 12:55 - 12:55  (00:00)    
root     ssh:notty    91.180.140.130   Wed Nov 11 09:57 - 09:57  (00:00)    
test     ssh:notty    161.202.41.19    Wed Nov 11 08:05 - 08:05  (00:00)    
test     ssh:notty    161.202.41.19    Wed Nov 11 08:05 - 08:05  (00:00)    
D-Link   ssh:notty    161.202.41.19    Wed Nov 11 08:05 - 08:05  (00:00)    
D-Link   ssh:notty    161.202.41.19    Wed Nov 11 08:05 - 08:05  (00:00)    
admin    ssh:notty    161.202.41.19    Wed Nov 11 08:05 - 08:05  (00:00)    
admin    ssh:notty    161.202.41.19    Wed Nov 11 08:04 - 08:04  (00:00)    
root     ssh:notty    161.202.41.19    Wed Nov 11 08:04 - 08:04  (00:00)    
root     ssh:notty    161.202.41.19    Wed Nov 11 08:04 - 08:04  (00:00)    
root     ssh:notty    161.202.41.19    Wed Nov 11 08:04 - 08:04  (00:00)      
root     ssh:notty    88.148.76.97     Tue Nov 10 07:19 - 07:19  (00:00)    
root     ssh:notty    88.148.76.97     Tue Nov 10 07:19 - 07:19  (00:00)    
root     ssh:notty    115.204.117.181  Tue Nov 10 05:31 - 05:31  (00:00)    
root     ssh:notty    116.28.189.130   Tue Nov 10 02:39 - 02:39  (00:00)    
kyle     ssh:notty    106.74.113.36    Tue Nov 10 02:03 - 02:03  (00:00)    
kyle     ssh:notty    106.74.113.36    Tue Nov 10 02:03 - 02:03  (00:00)    
kyle     ssh:notty    106.74.113.36    Tue Nov 10 02:03 - 02:03  (00:00)    
kyle     ssh:notty    106.74.113.36    Tue Nov 10 02:03 - 02:03  (00:00)    
jenkins  ssh:notty    106.74.113.36    Tue Nov 10 02:01 - 02:01  (00:00)    
jenkins  ssh:notty    106.74.113.36    Tue Nov 10 02:01 - 02:01  (00:00)    
jenkins  ssh:notty    106.74.113.36    Tue Nov 10 02:00 - 02:00  (00:00)    
jenkins  ssh:notty    106.74.113.36    Tue Nov 10 02:00 - 02:00  (00:00)    
jenkins  ssh:notty    106.74.113.36    Tue Nov 10 02:00 - 02:00  (00:00)    
jenkins  ssh:notty    106.74.113.36    Tue Nov 10 02:00 - 02:00  (00:00)    
iskren   ssh:notty    106.74.113.36    Tue Nov 10 01:57 - 01:57  (00:00)    
iskren   ssh:notty    106.74.113.36    Tue Nov 10 01:57 - 01:57  (00:00)    
iskren   ssh:notty    106.74.113.36    Tue Nov 10 01:57 - 01:57  (00:00)    
iskren   ssh:notty    106.74.113.36    Tue Nov 10 01:57 - 01:57  (00:00)    
info     ssh:notty    106.74.113.36    Tue Nov 10 01:55 - 01:55  (00:00)    
info     ssh:notty    106.74.113.36    Tue Nov 10 01:55 - 01:55  (00:00)    
info     ssh:notty    106.74.113.36    Tue Nov 10 01:55 - 01:55  (00:00)    
info     ssh:notty    106.74.113.36    Tue Nov 10 01:55 - 01:55  (00:00)    
its      ssh:notty    106.74.113.36    Tue Nov 10 01:52 - 01:52  (00:00)    
its      ssh:notty    106.74.113.36    Tue Nov 10 01:52 - 01:52  (00:00)    
its      ssh:notty    106.74.113.36    Tue Nov 10 01:52 - 01:52  (00:00)    
its      ssh:notty    106.74.113.36    Tue Nov 10 01:52 - 01:52  (00:00)    
hdfs     ssh:notty    106.74.113.36    Tue Nov 10 01:50 - 01:50  (00:00)    
hdfs     ssh:notty    106.74.113.36    Tue Nov 10 01:50 - 01:50  (00:00)    
hdfs     ssh:notty    106.74.113.36    Tue Nov 10 01:50 - 01:50  (00:00)    
hdfs     ssh:notty    106.74.113.36    Tue Nov 10 01:50 - 01:50  (00:00)    
hadoop   ssh:notty    106.74.113.36    Tue Nov 10 01:47 - 01:47  (00:00)    
hadoop   ssh:notty    106.74.113.36    Tue Nov 10 01:47 - 01:47  (00:00)    
hadoop   ssh:notty    106.74.113.36    Tue Nov 10 01:47 - 01:47  (00:00)    
hadoop   ssh:notty    106.74.113.36    Tue Nov 10 01:47 - 01:47  (00:00)    
g1       ssh:notty    106.74.113.36    Tue Nov 10 01:45 - 01:45  (00:00)    
g1       ssh:notty    106.74.113.36    Tue Nov 10 01:45 - 01:45  (00:00)    
gaurav   ssh:notty    106.74.113.36    Tue Nov 10 01:44 - 01:44  (00:00)    
gaurav   ssh:notty    106.74.113.36    Tue Nov 10 01:44 - 01:44  (00:00)    
gaurav   ssh:notty    106.74.113.36    Tue Nov 10 01:44 - 01:44  (00:00)    
gaurav   ssh:notty    106.74.113.36    Tue Nov 10 01:44 - 01:44  (00:00)    
git      ssh:notty    106.74.113.36    Tue Nov 10 01:42 - 01:42  (00:00)    
git      ssh:notty    106.74.113.36    Tue Nov 10 01:42 - 01:42  (00:00)    
git      ssh:notty    106.74.113.36    Tue Nov 10 01:40 - 01:40  (00:00)    
git      ssh:notty    106.74.113.36    Tue Nov 10 01:40 - 01:40  (00:00)    
git      ssh:notty    106.74.113.36    Tue Nov 10 01:40 - 01:40  (00:00)    
git      ssh:notty    106.74.113.36    Tue Nov 10 01:40 - 01:40  (00:00)    
ftpuser1 ssh:notty    106.74.113.36    Tue Nov 10 01:39 - 01:39  (00:00)    
ftpuser1 ssh:notty    106.74.113.36    Tue Nov 10 01:38 - 01:38  (00:00)    
ftpuser  ssh:notty    106.74.113.36    Tue Nov 10 01:37 - 01:37  (00:00)    
ftpuser  ssh:notty    106.74.113.36    Tue Nov 10 01:37 - 01:37  (00:00)    
ftpuser  ssh:notty    106.74.113.36    Tue Nov 10 01:37 - 01:37  (00:00)    
ftpuser  ssh:notty    106.74.113.36    Tue Nov 10 01:37 - 01:37  (00:00)    
fms      ssh:notty    106.74.113.36    Tue Nov 10 01:34 - 01:34  (00:00)    
fms      ssh:notty    106.74.113.36    Tue Nov 10 01:34 - 01:34  (00:00)    
fms      ssh:notty    106.74.113.36    Tue Nov 10 01:34 - 01:34  (00:00)    
fms      ssh:notty    106.74.113.36    Tue Nov 10 01:34 - 01:34  (00:00)    
dspace   ssh:notty    106.74.113.36    Tue Nov 10 01:32 - 01:32  (00:00)    
dspace   ssh:notty    106.74.113.36    Tue Nov 10 01:32 - 01:32  (00:00)    
dspace   ssh:notty    106.74.113.36    Tue Nov 10 01:32 - 01:32  (00:00)    
dspace   ssh:notty    106.74.113.36    Tue Nov 10 01:32 - 01:32  (00:00)    
db2fenc1 ssh:notty    106.74.113.36    Tue Nov 10 01:30 - 01:30  (00:00)    
db2fenc1 ssh:notty    106.74.113.36    Tue Nov 10 01:30 - 01:30  (00:00)    
db2inst1 ssh:notty    106.74.113.36    Tue Nov 10 01:29 - 01:29  (00:00)    
db2inst1 ssh:notty    106.74.113.36    Tue Nov 10 01:29 - 01:29  (00:00)    
db2admin ssh:notty    106.74.113.36    Tue Nov 10 01:28 - 01:28  (00:00)    
db2admin ssh:notty    106.74.113.36    Tue Nov 10 01:28 - 01:28  (00:00)    
che      ssh:notty    106.74.113.36    Tue Nov 10 01:26 - 01:26  (00:00)    
che      ssh:notty    106.74.113.36    Tue Nov 10 01:26 - 01:26  (00:00)    
che      ssh:notty    106.74.113.36    Tue Nov 10 01:26 - 01:26  (00:00)    
che      ssh:notty    106.74.113.36    Tue Nov 10 01:26 - 01:26  (00:00)    
cacti    ssh:notty    106.74.113.36    Tue Nov 10 01:24 - 01:24  (00:00)    
cacti    ssh:notty    106.74.113.36    Tue Nov 10 01:24 - 01:24  (00:00)    
cacti    ssh:notty    106.74.113.36    Tue Nov 10 01:24 - 01:24  (00:00)    
cacti    ssh:notty    106.74.113.36    Tue Nov 10 01:24 - 01:24  (00:00)    
cmsftp   ssh:notty    106.74.113.36    Tue Nov 10 01:22 - 01:22  (00:00)    
cmsftp   ssh:notty    106.74.113.36    Tue Nov 10 01:22 - 01:22  (00:00)    
cmsftp   ssh:notty    106.74.113.36    Tue Nov 10 01:21 - 01:21  (00:00)    
cmsftp   ssh:notty    106.74.113.36    Tue Nov 10 01:21 - 01:21  (00:00)    
cyrus    ssh:notty    106.74.113.36    Tue Nov 10 01:19 - 01:19  (00:00)    
cyrus    ssh:notty    106.74.113.36    Tue Nov 10 01:19 - 01:19  (00:00)    
cyrus    ssh:notty    106.74.113.36    Tue Nov 10 01:19 - 01:19  (00:00)    
cyrus    ssh:notty    106.74.113.36    Tue Nov 10 01:19 - 01:19  (00:00)    
ankur    ssh:notty    106.74.113.36    Tue Nov 10 01:17 - 01:17  (00:00)    
ankur    ssh:notty    106.74.113.36    Tue Nov 10 01:17 - 01:17  (00:00)    
ankur    ssh:notty    106.74.113.36    Tue Nov 10 01:17 - 01:17  (00:00)    
ankur    ssh:notty    106.74.113.36    Tue Nov 10 01:17 - 01:17  (00:00)    
agsadmin ssh:notty    106.74.113.36    Tue Nov 10 01:14 - 01:14  (00:00)    
agsadmin ssh:notty    106.74.113.36    Tue Nov 10 01:14 - 01:14  (00:00)    
agsadmin ssh:notty    106.74.113.36    Tue Nov 10 01:14 - 01:14  (00:00)    
agsadmin ssh:notty    106.74.113.36    Tue Nov 10 01:14 - 01:14  (00:00)    
altibase ssh:notty    106.74.113.36    Tue Nov 10 01:12 - 01:12  (00:00)    
altibase ssh:notty    106.74.113.36    Tue Nov 10 01:12 - 01:12  (00:00)    
altibase ssh:notty    106.74.113.36    Tue Nov 10 01:12 - 01:12  (00:00)    
altibase ssh:notty    106.74.113.36    Tue Nov 10 01:12 - 01:12  (00:00)    
amssys   ssh:notty    106.74.113.36    Tue Nov 10 01:09 - 01:09  (00:00)    
amssys   ssh:notty    106.74.113.36    Tue Nov 10 01:09 - 01:09  (00:00)    
amssys   ssh:notty    106.74.113.36    Tue Nov 10 01:09 - 01:09  (00:00)    
amssys   ssh:notty    106.74.113.36    Tue Nov 10 01:09 - 01:09  (00:00)    
applmgr  ssh:notty    106.74.113.36    Tue Nov 10 01:07 - 01:07  (00:00)    
applmgr  ssh:notty    106.74.113.36    Tue Nov 10 01:07 - 01:07  (00:00)    
applmgr  ssh:notty    106.74.113.36    Tue Nov 10 01:07 - 01:07  (00:00)    
applmgr  ssh:notty    106.74.113.36    Tue Nov 10 01:07 - 01:07  (00:00)    
a        ssh:notty    106.74.113.36    Tue Nov 10 01:05 - 01:05  (00:00)    
a        ssh:notty    106.74.113.36    Tue Nov 10 01:05 - 01:05  (00:00)    
root     ssh:notty    177.139.176.85   Mon Nov  9 19:04 - 19:04  (00:00)    
root     ssh:notty    60.178.124.185   Mon Nov  9 14:57 - 14:57  (00:00)    
root     ssh:notty    125.112.196.171  Mon Nov  9 07:25 - 07:25  (00:00)    
root     ssh:notty    116.25.171.179   Mon Nov  9 06:25 - 06:25  (00:00)    
root     ssh:notty    202.77.5.102     Mon Nov  9 05:38 - 05:38  (00:00)    
root     ssh:notty    202.77.5.102     Mon Nov  9 05:38 - 05:38  (00:00)    
dff      ssh:notty    202.77.5.102     Mon Nov  9 05:38 - 05:38  (00:00)    
dff      ssh:notty    202.77.5.102     Mon Nov  9 05:38 - 05:38  (00:00)    
zhangyan ssh:notty    202.77.5.102     Mon Nov  9 05:38 - 05:38  (00:00)    
zhangyan ssh:notty    202.77.5.102     Mon Nov  9 05:38 - 05:38  (00:00)    
root     ssh:notty    196.210.189.225  Mon Nov  9 05:13 - 05:13  (00:00)    
zhangyan ssh:notty    76.57.144.18     Mon Nov  9 00:39 - 00:39  (00:00)    
zhangyan ssh:notty    76.57.144.18     Mon Nov  9 00:39 - 00:39  (00:00)    
root     ssh:notty    90.231.244.223   Sun Nov  8 21:00 - 21:00  (00:00)    

btmp begins Sat Aug 23 22:53:52 2003
[[email protected] ~]#

时间: 2024-07-30 03:24:19

OpenSSH服务器端的配置文件各常用参数含义的相关文章

Nginx 配置文件 nginx.conf 参数含义(转载)

#定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数. worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log /var/log/nginx/error.log info; #进程文件 pid /var/run/nginx.pid; #一个nginx进程打开的最多文件描述符数目,理论值应该是最多打开文件数(系统的值

GCC 常用参数含义

-ansi 关闭 gnu c 中与 ansi c 不兼容的特性 , 激活 ansi c 的专有特性 ( 包括禁止一 些 asm inline typeof 关键字 , 以及 UNIX,vax 等预处理宏 -lxx 表示动态加载libxx.so库 -Lxx 表示增加目录xx,让编译器可以在xx下寻找库文件 -Ixx 表示增加目录xx,让编译器可以在xx下寻找头文件 优化选项 -shared 生成共享目标文件.通常用在建立共享库时 -Wall 生成所有警告信息.一下是具体的选项,可以单独使用 简单的

Ansible 八(ansible配置文件常用参数)

ansible配置文件常用参数 host_key_checking host_key_checking=False 禁用验证host_key_checking inventory   定义库文件位置,脚本,或者存放可通信主机的目录 inventory = /etc/ansible/hosts library ansible默认搜寻模块的位置 library = /usr/share/ansible Ansible知道如何搜寻多个用冒号隔开的路径,同时也会搜索在playbook中的"./libra

Samba配置文件常用参数详解

Samba配置文件常用参数详解 Samba的主配置文件叫smb.conf,默认在/etc/samba/目录下. smb.conf含有多个段,每个段由段名开始,直到下个段名.每个段名放在方括号中间.每段的参数的格式是:名称=指.配置文件中一行一个段名和参数,段名和参数名不分大小写. 除了[global]段外,所有的段都可以看作是一个共享资源.段名是该共享资源的名字,段里的参数是该共享资源的属性. Samba安装好后,使用testparm命令可以测试smb.conf配置是否正确.使用testparm

Nginx核心配置文件常用参数详解

Nginx核心配置文件常用参数详解 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 关于Nginx权威文档的话童鞋们可以参考Nginx官方文档介绍:http://nginx.org/en/docs/http/ngx_http_core_module.html.本篇博客只列出来了常用的参数介绍,用这些参数说明来定制化我们自己的nginx的web服务器等等. 一.正常运行的必备配置 1>.user username [groupname]; #以那个用户身份运行,以在configu

批出里中常用参数的含义

Bat基本参数含义 每一 命令 的功能. /P 删除每一个文件之前提示确认. /f 强制删除只读文件. /S 从所有子目录删除指定文件. /q是无需确认直接删除   /q 安静模式.删除全局通配符时不要求确认. /a 根据属性选择要删除的文件. attributes R 只读文件 S 系统文件 H 隐藏文件 A 存档文件 - 前缀表明"非 /?  在命令提示符显示帮助. 备注:如果路径中带有空格字符,请将路径进行引号引用. 例1:删除文件 我要删除 D:\我的文档 和 D:\我的文档\桌面 里

openssh服务器端和客户端的配置及应用

做运维的过程中,远程连接是非常实用并且常用的的操作,而在众多的远程连接工具中,openssl工具的运用是相当广泛的,所以今天就给大家单独分享一下,关于这一块的一些知识,当然这是做好运维的必须掌握的,所以大家务必多加练习,以便于我们在实际生产中环境能更加便利的使用openssl做维护 1.ssh: secure shell, protocol, 22/tcp, 安全的远程登录 OpenSSH: ssh协议的开源实现 dropbear:另一个开源实现 SSH协议版本 v1: 基于CRC-32做MAC

find常用参数详解

find常用参数详解 作者:尹正杰 在linux系统中,在init 3模式情况下都是命令行模式,这个时候我们想要找到一个文件的就得依赖一个非常好用的命令find,也是我们要学些的命令哟 再Linux操作系统的世界里,有各个不同的发行版本,redhat,centos,ubantu,suse,debian,fedora等等,我们需要在这些不通的操作系统中找一个文件,那么 我们开始今天的命令吧! 在学find命令之前,我们一起了解一下模糊匹配的命令locate,locate指令和find找寻档案的功能

深入理解JVM虚拟机10:JVM常用参数以及调优实践

微信公众号[Java技术江湖]一位阿里 Java 工程师的技术小站.作者黄小斜,专注 Java 相关技术:SSM.SpringBoot.MySQL.分布式.中间件.集群.Linux.网络.多线程,偶尔讲点Docker.ELK,同时也分享技术干货和学习经验,致力于Java全栈开发!(关注公众号后回复”Java“即可领取 Java基础.进阶.项目和架构师等免费学习资料,更有数据库.分布式.微服务等热门技术学习视频,内容丰富,兼顾原理和实践,另外也将赠送作者原创的Java学习指南.Java程序员面试指