sudo fail2ban-client start
- Status of fail2ban service:
sudo systemctl status fail2ban - Status of fail2ban:
sudo fail2ban-client status sshd
To manually ban an IP address:
sudo fail2ban-client -vvv set JAIL banip IPADDR
where:
-
JAILis the name of the jail to use (get list withsudo fail2ban-client status) -
IPADDRis the IP address to ban -
List banned IP addressed:
sudo zgrep 'Ban' /var/log/fail2ban.log*orsudo fail2ban-client banned -
Get banned IP with time:
sudo fail2ban-client get sshd banip --with-time
To synchronize directories with Mega.io, there are several options :
- Megasync aka Mega Desktop app. This is a GUI. The issue is that the app loses the sync of the directories you want to sync between reboots, so you have to waste time syncing at each run.
- MegaCMD or
apt install megacmdwhich is a bunch of CLI commands. The sync is saved between reboots in~/.megaCmd
- To login:
login email - To add a new directory to sync:
mega-sync localdir remotemegadir - View current status:
mega-sync. Sync means it's scanning directories. Pending means transfers are potentially happening.
Run states: Running, Pause, Stopped Status: Pending, Syncing
- If you need to rescan:
mega-sync rescan PATH - To remove a sync:
mega-sync remove ID - View current transfers:
mega-transfers - Switch debug level:
mega-log -sc infosets command and SDK level to info