最近客户的 监控软件不能 ssh2 到 目标主机,
用如下方法监控:
**********************************************
1. assign the log file for auth logging
# touch /var/adm/auth.log
# chmod 640 /var/adm/auth.log
2. turn on auth logging
# vi /etc/syslog.conf
Append the following line to the bottom:
auth.debug /var/adm/auth.log
Save, Exit, then:
# refresh –s syslogd
3: 看auth.log:
截取一部份:
Jan 28 10:43:04 hgpsfe01 auth|security:info sshd[1597562]: Accepted password for patrol from 146.215.127.94 port 55753 ssh2
Jan 28 10:43:04 hgpsfe01 auth|security:info sshd[946560]: Disconnecting: Remote login for account patrol is not allowed.
Jan 28 10:46:19 hgpsfe01 auth|security:info sshd[2503044]: Accepte