Skip to content

Problem with key exchange #1

@jonaschl

Description

@jonaschl

Hi,
line 129 in main.c cause this on the server:

Listening on port 2222.
Accepted a connection.
ssh version: 2
openssh version: 0
Error exchanging keys: `Socket error: disconnected'.
process 9672 reaped

and this on the client

sh root@192.168.103.126 -p 2222 -vvv
OpenSSH_7.1p1, OpenSSL 1.0.2d-fips 9 Jul 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.103.126 [192.168.103.126] port 2222.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/jonatan/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
debug1: Remote protocol version 2.0, remote software version SSH-2.0-billsSSH_3.6.3q3
debug1: no match: SSH-2.0-billsSSH_3.6.3q3
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.103.126:2222 as 'root'
debug3: put_host_port: [192.168.103.126]:2222
debug3: hostkeys_foreach: reading file "/home/jonatan/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file /home/jonatan/.ssh/known_hosts:7
debug3: load_hostkeys: loaded 1 keys from [192.168.103.126]:2222
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
Bad packet length 167772161.
ssh_dispatch_run_fatal: Connection to 192.168.103.126: message authentication code incorrect

I use a fresh Fedora 23 installation .
Without this line (126 in main.c)

ssh_bind_options_set(sshbind, SSH_BIND_OPTIONS_BANNER, "SSH-2.0-billsSSH_3.6.3q3\r\n");

the honeypot work fine.

Regards Jonatan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions