gitea log configuration for fail2ban

Gitea since 1.21 has a different logging configuration format. TL;DR If you want to configure fail2ban to ban those failed ssh login attempts, use this log section in app.ini

Sadly you can’t turn off all logging except the SSH log. You have to wear your SSD. The actual fail2ban configuration is described on their […]

sshd sftp chroot jail howto

Problem description: You would like to jail users to their home directories and not allow shell access, only sftp access. Solution: SFTP chroot jail 1. Create a system group. Here I call it sftponly.

2. edit the sshd_config file, usually residing in /etc/ssh/sshd_config (in weird opensuse it’s in /usr/etc/sshd/ ) and append (it needs […]