远程用ssh登陆redhat AS 4服务器,连接记录日志都在哪个文件?如何清楚,有没有脚本?
by geminilinux - Linux系统管理 - 2008-11-13 22:42:10 阅读(10625) 回复(4)
linux下怎么设置 用户通过ssh登录主机后的所有操作命令记录到 系统日志文件中 ,我在安装centos5.5 时系统是默认全都记录 ,但是centos6.3 就没有,请问这个设置是在哪里打开的 ,谢谢 以下是/var/log/message文件中记录的操作命令 Oct 14 16:05:46 hostname root[11610] 10.10.1.1 54925 10.10.1.2 22: cat ../pam.d/sshd Oct 14 16:06:33 hostname root[11610] 10.10.1.1 54925 10.10.1.2 22: #1413273993 Oct 14 16:06:33 hos...
sshd(pam_unix)[1108]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=216.X.X.X user=root sshd(pam_unix)[31008]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=124.X.X.X 在ssh登陆日志中出现了一些暴力破解的日志,对这些日志能看个大概,不过有一些不明白 1 方括号里的数字代表什么意思 2 logname= UID EUID代表了登陆名.用户ID 程序运行的ID? 3 上面一条有user=root ...
大家能看得明白,这日志吗? 请大家分析.谢谢! Oct 29 03:32:39 cy3 kernel: 220.144.254.67 sent an invalid ICMP type 11, code 1 error to a broadcast: 0.0.0.0 on eth0 Oct 29 03:34:23 cy3 kernel: 218.227.255.41 sent an invalid ICMP type 11, code 1 error to a broadcast: 0.0.0.0 on eth0 Oct 29 03:34:40 cy3 kernel: 221.170.250.2 sent an invalid ICMP type 11, code 1 error to a broadcast: 0.0.0.0 on eth0 Oct...
是这样,我开启了公司linux服务器的ssh服务,但是内网用户基本都能连接上来(郁闷)我怎么能知道谁,什么时候使用过ssh客户端登陆? 最好能知道ip和他使用过哪些命令 有什么好的方法么?
服务器的/var/log/secure关于sshd方面有大量内容,并且频率也很高: Jul 8 15:55:09 MyServer sshd[9829]: Did not receive identification string from 1.2.3.4 Jul 8 15:55:09 MyServer sshd[9828]: Did not receive identification string from 10.20.30.40 Jul 8 15:55:10 MyServer sshd[9830]: Did not receive identification string from 1.2.3.4 Jul 8 15:55:10 MyServer sshd[9831]: Did not receive identification ...
我使用ssh2.0的时候,发现ssh只记录ssh客户软件登陆系统控制台的时候的情况,但是并不记录通过ssh连接sftp的记录,找不到登陆sftp的日志,且还发现一个问题,就是一般的ftp上传,如果对文件的组有写的权限,那么如果上次文件是aa写的,如果bb修改,那么文件的个人属性就是bb的了,当然aa和bb都属于一个组,但是发现通过sftp上传的文件,只要文件属性的aa的,bb修改了仍然还是aa的,不知道大家有没有发现类似情况,关于sftp的日志,...