News for hackers. Stuff that matters.
Re:SSH for Fun and Profit by opk on Monday May 02, 2016 @03:25AM (#11609704)
It's interesting that "The transport protocol doesn’t cover who sends their banner first". It'd be good if I could configure my server to keep quiet until the client identifies itself as an SSH client. I run it on an unusual port and it gets scanned frequently. sshguard helps but I'd prefer it wasn't announcing to any client that it is an ssh server.
Re:SSH for Fun and Profit by DDub on Monday May 02, 2016 @03:48AM (#11609800)
Sslh would give you this ability, if you're prepared to shim an extra program infront of your daemon; http://www.rutschle.net/tech/sslh.shtml
Re:SSH for Fun and Profit by rsync on Monday May 02, 2016 @11:26AM (#11612171)
"It'd be good if I could configure my server to keep quiet until the client identifies itself as an SSH client. I run it on an unusual port and it gets scanned frequently."

This is unpopular, but you could implement port knocking.

Now the rest of the world doesn't even see your sshd - on any port. I love the idea and have implemented it everywhere that it's practical.

Re:SSH for Fun and Profit by bartvk on Tuesday May 03, 2016 @02:05AM (#11618293)
sshguard is amazing, I routinely install it on any new servers. It comes with the standard Debian and derivatives' repositories.

After installation, simply type:

$ sudo apt-get -y install sshguard

And then edit the whitelist to include your local IP if you want;

$ sudo vim /etc/sshguard/whitelist $ sudo service sshguard restart

Re:SSH for Fun and Profit by tokenizerrr on Monday May 02, 2016 @04:27AM (#11609960)
How does sshguard compare to fail2ban?
Re:SSH for Fun and Profit by opk on Monday May 02, 2016 @10:34AM (#11611670)
I never used fail2ban: sshguard was simply what I came across first and it was easy to setup and worked as advertised. The Arch wiki states: "sshguard is different from the other two in that it is written in C, is lighter and simpler to use with fewer features while performing its core function equally well."