This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| system:ssh:security [2020/07/26 21:51] – ltsover9000 | system:ssh:security [2020/07/27 05:30] (current) – ltsover9000 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ``` | ``` | ||
| watch -n 1 tail -n 50 / | watch -n 1 tail -n 50 / | ||
| + | ``` | ||
| + | |||
| + | # View successful login attempts | ||
| + | ``` | ||
| + | last | ||
| + | ``` | ||
| + | |||
| + | # Custom rolled commands | ||
| + | ``` | ||
| + | # /security | ||
| + | logs # general logs /w watch | ||
| + | llogs # live logs | ||
| ``` | ``` | ||
| Line 83: | Line 95: | ||
| Edit fail2ban configuration file using your favorite text-edito (I personally use ‘nano’) | Edit fail2ban configuration file using your favorite text-edito (I personally use ‘nano’) | ||
| ``` | ``` | ||
| - | sudo nano / | + | sudo nano /etc/fail2ban/jail.local |
| ``` | ``` | ||
| You can set IP address for fail2ban to ignore, IP addresses can be separated by space. | You can set IP address for fail2ban to ignore, IP addresses can be separated by space. | ||