DenyHosts清除黑名單IP位址方法

2021-09-29 10:19:06 字數 844 閱讀 2695

連線遠端伺服器發生了以下的錯誤

ssh_exchange_identification: read: connection reset
我想應該是我當前的 ip 位址被 denyhosts 加入了黑名單

本來想只要將當前的 ip 位址在黑名單中去掉就可以了

沒想到事實並不是如此,為此還查資料花費了一點功夫

現記錄下來

注意 :

denyhosts會讀取多個記錄確保沒有漏網之魚,清空/var/log/secure和/etc/hosts.deny並不能完美解鎖自己的ip, 很快就會被denyhosts重新鎖定. 這也是denyhosts強大的地方.

-rw-r--r-- 1 root root    39 2月  16 2015 allowed-hosts

-rw-r--r-- 1 root root 71451 7月 19 10:58 hosts

-rw-r--r-- 1 root root 71270 7月 19 10:58 hosts-restricted

-rw-r--r-- 1 root root 71433 7月 19 10:58 hosts-root

-rw-r--r-- 1 root root 71280 7月 19 10:58 hosts-valid

-rw-r--r-- 1 root root 105 7月 19 10:58 offset

-rw-r--r-- 1 root root 0 7月 19 10:58 suspicious-logins

-rw-r--r-- 1 root roo

asp 檢查黑名單 黑名單驗證的突破

黑名單驗證的突破 作業系統特性 windows下對大小寫不敏感,php和php對windows來說都是一樣的。windows下,上傳的檔名中帶有test.php data會在伺服器生產乙個test.php的檔案並可以被解析。及 test.php test.php data windows下檔名結尾加...

aws 黑名單功能

如果你想授權某段ip訪問,那麼可以用安全組的白名單功能,但是安全組不提供黑名單功能。如果我們的某個服務受某個ip攻擊,那麼此時可以選擇網路acl對其進行黑名單限制,操作步驟如下 1.登入aws,選擇vpc 2.vpc裡有個網路acl,當然事先你要找到你服務對應的vpc 3.選擇編輯入站規則,入站規則...

Linux nginx 黑名單配置

進入nginx配置資料夾下,建立blacklist.conf黑名單配置檔案,編輯blacklist.conf cd usr local nginx conf touch blacklist.conf vi blacklist.conf 寫入要攔截的ip位址,儲存並退出 編輯當前目錄下nginx.co...