请问authlog里面的这几行日志是什么意思

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
tonyoung
帖子: 3
注册时间: 2015-10-12 13:40
系统: ubuntu 14.10

请问authlog里面的这几行日志是什么意思

#1

帖子 tonyoung » 2015-10-24 16:07

代码: 全选

Oct 23 15:15:37 iZ28zxqbmusZ sshd[15237]: Connection closed by 60.176.127.161 [preauth]
Oct 23 15:19:41 iZ28zxqbmusZ sshd[15242]: Did not receive identification string from 103.224.167.150
Oct 23 17:55:11 iZ28zxqbmusZ sshd[15330]: Did not receive identification string from 60.176.164.4
Oct 23 20:01:26 iZ28zxqbmusZ sshd[15405]: Did not receive identification string from 45.56.102.119
Oct 23 20:01:26 iZ28zxqbmusZ sshd[15403]: Connection closed by 45.56.102.119 [preauth]
Oct 23 20:01:27 iZ28zxqbmusZ sshd[15404]: Connection closed by 45.56.102.119 [preauth]
Oct 23 20:01:29 iZ28zxqbmusZ sshd[15407]: Connection closed by 45.56.102.119 [preauth]
Oct 23 21:19:00 iZ28zxqbmusZ sshd[15466]: Did not receive identification string from 202.62.71.117
Oct 24 04:15:51 iZ28zxqbmusZ sshd[15714]: Did not receive identification string from 94.40.82.38
Oct 24 07:53:11 iZ28zxqbmusZ sshd[15939]: Did not receive identification string from 169.45.161.189
Oct 24 08:14:08 iZ28zxqbmusZ sshd[15957]: Bad protocol version identification '' from 139.196.26.17 port 43423
Oct 24 09:04:41 iZ28zxqbmusZ sshd[15977]: Did not receive identification string from 125.120.230.244
Oct 24 10:28:40 iZ28zxqbmusZ sshd[16028]: Connection closed by 69.164.207.141 [preauth]
Oct 24 10:28:41 iZ28zxqbmusZ sshd[16029]: Connection closed by 69.164.207.141 [preauth]
是我被别人在扫描端口吗?我是否需要配置一些东西进行防御?
本人新手,还请大家指教。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 请问authlog里面的这几行日志是什么意思

#2

帖子 vickycq » 2015-10-24 18:03

如果怀疑自己被扫,可以改一下 ssh 默认端口。

常用措施
  • 修改默认端口
  • 禁用 root 登录
  • 禁用密码登录,使用秘钥
  • 使用 Fail2ban
  • ...
参考
http://www.gtcomm.net/blog/securing-a-l ... -security/
http://www.cyberciti.biz/tips/linux-uni ... tices.html
http://askubuntu.com/questions/2271/how ... ssh-server
https://www.rackaid.com/blog/how-to-har ... -security/
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复