Logwatch出現pam(sshd)error - Linux

By Zanna
at 2009-09-10T20:00
at 2009-09-10T20:00
Table of Contents
幾種方法, 你參考看看
1.透過TCPWrapper可以過濾, /etc/hosts.allow, 限制哪些ip可連線
example:
all : 192.168.0.0/255.255.0.0 : allow
sshd : all : deny
2.利用iptables, 限制可以連線的ip
/etc/sysconfig/iptables
example:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp \
--dport 22 -s 192.168.1.1-j ACCEPT
3.限制特殊來源與user /etc/ssh/ssh/sshd_config
example:
AllowUsers root@localhost, [email protected], [email protected], chlee
※ 引述《ying5320 (BillChen)》之銘言:
: pam_succeed_if(sshd:auth): error retrieving information about user chaya : 1
: time(s)
: pam_succeed_if(sshd:auth): error retrieving information about user carlota :
: 1 time(s)
: pam_succeed_if(sshd:auth): error retrieving information about user charisse
: : 1 time(s)
: 每天Linux的Log都會出現這種訊息
: 我在iptables的rule該怎麼寫
: 才不會出現這些不該有的攻擊?
--
1.透過TCPWrapper可以過濾, /etc/hosts.allow, 限制哪些ip可連線
example:
all : 192.168.0.0/255.255.0.0 : allow
sshd : all : deny
2.利用iptables, 限制可以連線的ip
/etc/sysconfig/iptables
example:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp \
--dport 22 -s 192.168.1.1-j ACCEPT
3.限制特殊來源與user /etc/ssh/ssh/sshd_config
example:
AllowUsers root@localhost, [email protected], [email protected], chlee
※ 引述《ying5320 (BillChen)》之銘言:
: pam_succeed_if(sshd:auth): error retrieving information about user chaya : 1
: time(s)
: pam_succeed_if(sshd:auth): error retrieving information about user carlota :
: 1 time(s)
: pam_succeed_if(sshd:auth): error retrieving information about user charisse
: : 1 time(s)
: 每天Linux的Log都會出現這種訊息
: 我在iptables的rule該怎麼寫
: 才不會出現這些不該有的攻擊?
--
Tags:
Linux
All Comments

By Carolina Franco
at 2009-09-14T13:47
at 2009-09-14T13:47
Related Posts
ARMware released under GPLv3

By Edwina
at 2009-09-10T19:23
at 2009-09-10T19:23
Openoffice問題 表格內文對齊

By Zanna
at 2009-09-10T17:37
at 2009-09-10T17:37
dd

By Mary
at 2009-09-10T16:38
at 2009-09-10T16:38
iptables 如何擋 ping 不到 ip 的網站?

By Olivia
at 2009-09-10T16:37
at 2009-09-10T16:37
grub和mbr問題

By Margaret
at 2009-09-10T16:24
at 2009-09-10T16:24