Skip to content

Problems logging via SSH to the honeypot #677

@bontchev

Description

@bontchev

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions