-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
I have set up a honeypot to accept any user credentials:
auth_class = AuthRandom
auth_class_parameters = 1, 1, 0
Today I noticed in the logs that login attempts often fail. So, I started investigating by trying to login to the honeypot via Telnet and SSH, using the username foo and the password bar.
Logging in over Telnet works as it should. I get a login prompt, then a password prompt, the credentials I enter are accepted and I am logged in.
Logging in over SSH, however, gives strange results. If I do
ssh foo@honeypot_ip
everything works as it should - I am asked just for a password, the password bar is accepted and I am logged in.
However, if I do just
ssh honeypot_ip
I am not asked for a username. I am still asked for a password only and no matter what I enter, I am not logged in.
Any ideas what might be the problem? If no username is specified to ssh, it should prompt for it, no? (On real machines when I open SSH access, one of the first things I do is disable password access and leave access by public keys only, so I am not sure what is supposed to happen.)