Portal Home > Knowledgebase > Articles Database > How can I make sshd lie about it's accepted authentication methods?
How can I make sshd lie about it's accepted authentication methods?
Posted by ub3r, 05-16-2008, 06:59 AM |
With my sshd installation, I have password authentication disabled, and only accept key-based auth. What I want to do is, make sshd lie about it's accepted authentication methods, or even make up a few to confuse anyone who's trying to connect. For example,
[root@vps2 ~]# ssh hah.cx
Permission denied (publickey).
I'd like to make it show something like,
[root@vps2 ~]# ssh hah.cx
Permission denied (publickey,lol,idiot).
Anybody have any idea as to how this can be accomplished?
|
Posted by PeHe, 05-16-2008, 07:17 AM |
Download source, edit it, compile again and reboot sshd.
Can't be that hard.
|
Posted by plumsauce, 05-16-2008, 07:20 AM |
Yep, if you want silly features, you're gonna have to work for it.
Of course, you could always do a binary patch.
|
Posted by Jeremy, 05-16-2008, 09:35 AM |
haha yea that can only be changed via the source, happy trails allot of grepings i see in your future.
|
Add to Favourites Print this Article
Also Read