Skip to content

Tests fail when building Debian testing package - test_sshd.test 1 - sshd-test_ssh2 #1808

@babelouest

Description

@babelouest

Describe the bug
Recently, the package libssh2 in Debian fails to build due to errors in tests test_sshd.test 1 and sshd-test_ssh2

To Reproduce
The bug #1129134 was open and the full build log is available here.

The error indicates the following:

FAIL: test_sshd
===============

Fingerprint: 12 FD AD 1E 3B 31 B1 0B AB B0 0F 2A 8D 1B 9A 62 C3 26 BD 2F 
Authentication methods: publickey,password,keyboard-interactive
Authentication by public key failed.
all done
libssh2_userauth_publickey_fromfile_ex failed (-18): Username/PublicKey combination invalid
# sshd executable: '/usr/sbin/sshd' (OpenSSH_10.2p1 Debian)
# sshd log: '/tmp/tmp.KowiQTcyPe'
# ssh executable: '/usr/bin/ssh' (OpenSSH_10.2p1 Debian-5, OpenSSL 3.5.5 27 Jan 2026)
# ssh log: '/tmp/tmp.HvZErOCiPi'
# waiting for sshd...
# waiting for sshd...
# waiting for sshd...
# waiting for sshd...
# waiting for sshd...
# waiting for sshd...
# waiting for sshd...
# giving up waiting for sshd. Tests are expected to fail.
# sshd log:
#  Server listening on 0.0.0.0 port 4711.

#  Server listening on :: port 4711.

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 38322 [preauth]

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 59084 [preauth]

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 59098 [preauth]

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 59102 [preauth]

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 59112 [preauth]

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 59124 [preauth]

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 59138 [preauth]

#  User sbuild not allowed because account is locked

#  Connection closed by invalid user sbuild ::1 port 59146 [preauth]

# ssh test connect log:
1..2
not ok 1 - sshd-test_ssh2
FAIL: test_sshd.test 1 - sshd-test_ssh2
not ok 2 - sshd-test_auth_pubkey_ok_ed25519
FAIL: test_sshd.test 2 - sshd-test_auth_pubkey_ok_ed25519

Version (please complete the following information):
Debian testing

  • libssh2 1.1.11
  • gcc 15.2.0
  • glibc 2.42.13
  • openssl 3.5.5

Additional context
The problem just dropped in Debian, without any change to the package since October 2024.

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