How to Disable Root SSH Login and Still Recover a Locked-Out VPS

disable root ssh login

To disable root SSH login safely, set up a working sudo account with key login first, then change one line in sshd_config and test it in a second terminal window before you log out. Root is the first account every automated scanner tries, so closing that door cuts a large share of brute-force noise. The … Baca Selengkapnya

How to Block SSH Login Attempts from Specific Countries with GeoIP

block ssh login attempts by country

If your auth log is full of failed SSH logins from countries you never do business in, cut most of that noise at the firewall. Learning how to block SSH login attempts by country with GeoIP means building a list of IP ranges per country, then dropping port 22 traffic from the countries you block … Baca Selengkapnya

How to Set Up Two-Factor Authentication for SSH on Your VPS

two-factor authentication for ssh

How to Set Up Two-Factor Authentication for SSH on Your VPS A password alone is a weak lock on your server. Bots probe SSH on every VPS, trying common passwords around the clock, and one guessed password hands them a shell. Setting up two-factor authentication for ssh adds a second check: even with the right … Baca Selengkapnya