User Tools

Site Tools


ssh:blacklist_a_public_key

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ssh:blacklist_a_public_key [2016/12/05 15:31] peterssh:blacklist_a_public_key [2019/12/04 21:19] (current) – removed peter
Line 1: Line 1:
-====== SSH - Blacklist a public key ====== 
- 
-You could remove the keys from each respective **.ssh/authorized_keys** file, but to do it on a server-wide basis. 
- 
-Look into the **RevokedKeys** configuration option for the sshd.  See man sshd_config. 
- 
-Remove john@server1.sharewiz.net from ~/.ssh/authorized_keys and lock the user account too: 
- 
-<code bash> 
-cd /home/john 
-sed -i '/ john@server1.sharewiz.net$/d' ~/.ssh/authorized_keys 
-passwd -l john 
-</code> 
  
ssh/blacklist_a_public_key.1480951917.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki