Logwatch出現pam(sshd)error - Linux

Zanna avatar
By Zanna
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該怎麼寫
: 才不會出現這些不該有的攻擊?

--
Tags: Linux

All Comments

Carolina Franco avatar
By Carolina Franco
at 2009-09-14T13:47
多謝上方版友指導,我再試試看

ARMware released under GPLv3

Edwina avatar
By Edwina
at 2009-09-10T19:23
※ 引述《halajohn (Wei Hu)》之銘言: : 最近我把之前寫的一個模擬器放在 google code 上面 release : 出來, 名叫 ARMware. : 她的 project page 在 http://code.google.com/p/armware/ : 討論區在 ...

Openoffice問題 表格內文對齊

Zanna avatar
By Zanna
at 2009-09-10T17:37
※ [本文轉錄自 Office 看板] 作者: jackjack0040 (小肥肥) 看板: Office 標題: Re: [問題] Openoffice問題 表格內文對齊 時間: Thu Sep 10 16:52:56 2009 問個奇怪的問題… 請問我使用openoffice中的odt文件,插入一 ...

dd

Mary avatar
By Mary
at 2009-09-10T16:38
我想原 po 是想換大硬碟,j大的方法可以用 我給個建議,小修改一些,順便附上 grub 安裝 ※ 引述《jlovet (打不贏怪兵器不好)》之銘言: : ※ 引述《huggie (huggie)》之銘言: : : 我想把 root partition 換到新的硬碟上 : : 新的比舊的大 (30GB - ...

iptables 如何擋 ping 不到 ip 的網站?

Olivia avatar
By Olivia
at 2009-09-10T16:37
如果一個網站 只有 domain name ping 不到 ip 要怎麼用 iptables 阻擋? iptables -A FORWARD -d ip -j DROP 填 domain name 會找不到 還是說要開 dns 53 port 才能夠? 感謝 -- my s ...

grub和mbr問題

Margaret avatar
By Margaret
at 2009-09-10T16:24
用 Live CD 開機(ubuntu安裝光碟也行) 確定 ubuntu hd /boot/grub/menu.lst 設定正確 andgt;grub andgt;root (hd1,0) andgt;setup (hd0) andgt;quit 試試看吧 ※ 引述《moneycat2128 ...