Re:Professionals: How do you make sure your computer hasn't ...
by andrewSC on Thursday July 06, 2017 @12:27PM
(#14711559)
Have you tried/are you interested in setting a different port number on the server? Setting a different port number and using ssh_config on your clients (so you don't have to keep specifying the different port) helps a ton. I've done this with a Google 2FA solution[1] and honestly haven't seen a single rogue attempt.
----- [1] https://www.digitalocean.com/community/tutorials/how-to-set-...
Re:Professionals: How do you make sure your computer hasn't ...
by techcode on Thursday July 06, 2017 @01:33PM
(#14712165)
While most guides/books on initial setting up sshd explain the usual stuff - e.g.: allow only key auth, no root ...etc.
Changing ssh port from standard (I literally forgot, is it 22?) to something else is one of those things you pick up in the field.
Usually only once you actually had to maintain production servers. And hopefully before some of the fancy things (e.g.: port-knockers) failed and locked you out :)
Changing port is super simple to configure and yet it cuts out 99.9% of noise (if not 100%) from brute-force attempts that otherwise might make you ignore alarms ...
Re:Professionals: How do you make sure your computer hasn't ...
by ganeshkrishnan on Friday July 07, 2017 @04:20AM
(#14716920)
I will have to do this. Running a startup means some tasks are forever in the "todo" area
This is very hard to define. I have all my servers on cloud locked down and can only ssh with keys (No passwords) and everytime I look at the access log, it just makes me sweat seeing all the "drive by" ssh access attempts using standard usernames (which I don't use) and even unstandard user names (like "mother", "suser" etc).
Almost like returning home and seeing unknown footprints outside your home door. You know the door is secure, the window is bolted and you have an alarm. But still it's unnerving.
Basic practices I follow:
Don't run services with a user that has root access.
SSH only with keys
Open up ports on Azure portal only for required services.
Check "last", "uptime" "htop" everytime I login.