Do you use ssh on standard or non-standard port?
I deployed two machines with sshd on 22 port and already a bit tired of bots knocking into it.
Poll
Voting ended 25 October at 7:12.
Do you use ssh on standard or non-standard port? I deployed two machines with sshd on 22 port and already a bit tired of bots knocking into it. Anonymous poll
Poll
22
64
49.2%
Non-standard port
56
43.1%
Do some other cool trick
130 people voted. 10
7.7%
Voting ended 25 October at 7:12. 10 comments
@tfb on my personal VPSes I use non-standard port and have it written in my ssh config, so I just type ssh hostname and it works, but I didn't thought about best ssh practices for years. Curious, what is a good way to deal with it nowadays. Same here. @abcdw Why not put it behind something like Wireguard? @abcdw 22 equals to a selfhosted honeypot. The first thing you do is change the port, then redo all server keys and deny the use of outdated protocols via conf. Then create an ed25519 private key, password protected, and ssh is set up @abcdw I use `sslh` to share 443 between ssh, https and, when I had it on, openvpn. It has support for a couple more protocols. @abcdw just 22 with fail2ban also have it set to increase in ban time every failed attempt # initial ban time: |
@abcdw I use port 22 with password login disabled and fail2ban, and that keeps the amount of knocks down pretty low. I do keep thinking about moving it to some odd high port though