Le 30/04/2025 à 23:58, Colin Watson a écrit :
On Wed, Apr 30, 2025 at 09:52:18PM +0100, Colin Watson wrote:
I'm trying to get my test system closer to yours, but no luck so far.
The best I've been able to come up with is an overlap between source
and destination in a strlcpy call, which should probably be fixed,
I filed https://bugzilla.mindrot.org/show_bug.cgi?id=3819 upstream with
a patch for that. I wouldn't bet on it being the cause here, but if you
happen to have time and ability to recompile with that patch, I don't
suppose it would hurt to try.
(If you do have time and ability to recompile, trying with unpatched
upstream source might also be worthwhile; it would be good to narrow
down whether a Debian patch is at fault.)
Hello,
Sorry for the delay. Here are the results from some testing.
It seems that the problem may be related to pam_ecryptfs, after all
Rebuilding openssh
* rebuild w/o debian patches
All patches removed except four
gssapi.patch
authorized-keys-man-symlink.patch
debian-config.patch
restore-authorized_keys2.patch
to pass check-ucf-md5sums.
I may retry w/o any patch (but I doubt it will make a difference)
Still crashes
* rebuild with all Debian patches, plus the patch to "copy dirname"
Crashes identically
Note that when calling sshd-session through valgrind, the location
reported is different when the client attempts first pubkey
authentication or password
(in any case there is no pubkey in place in the target user .ssh dir on
the server side)
Pubkey:
mai 06 17:14:25 deb-trixie-alpha sshd[2216]: ==2216== Process
terminating with default action of signal 11 (SIGSEGV): dumping core
mai 06 17:14:25 deb-trixie-alpha sshd[2216]: ==2216== Access not within
mapped region at address 0x1FFEFFCD78
mai 06 17:14:25 deb-trixie-alpha sshd[2216]: ==2216== Cannot map memory
to grow the stack for thread #1 to 0x1ffeffc000
mai 06 17:14:25 deb-trixie-alpha sshd[2216]: ==2216== at 0x1BCC09:
??? (in /usr/lib/openssh/sshd-session)
Password:
mai 06 17:15:24 deb-trixie-alpha sshd[2256]: ==2256== Process
terminating with default action of signal 11 (SIGSEGV): dumping core
mai 06 17:15:24 deb-trixie-alpha sshd[2256]: ==2256== Access not within
mapped region at address 0x1FFEFBEFF8
mai 06 17:15:24 deb-trixie-alpha sshd[2256]: ==2256== Cannot map memory
to grow the stack for thread #1 to 0x1ffefbe000
mai 06 17:15:24 deb-trixie-alpha sshd[2256]: ==2256== at 0x51074D9:
____strtol_l_internal (strtol_l.c:238)
* To exclude any local things and remnants from years of experiments on
my desktop machine, I've setup new virtual machines
(using libvirt / virt-manager, AMD64, UEFI if that matters) as follows:
- install trixie with the Debian installer Trixie Alpha 1 (netinst)
- no desktop, only ssh server
- add a few convenience packages (sudo mc vim)
- add debugging packages (systemd-coredump, gdb, debuginfod, valgrind)
at this point ssh seems to work correctly
- add ecryptfs-utils (+ cryptsetup / rsync)
then ssh-session starts to crash most of the time
Note that although ecryptfs-utils was installed on my (desktop) system,
I never used it.
So in the new VM I've added another userid and migrated the home
directory (ecryptfs-migrate-home)
Result:
- when the "eCryptfs Key/Mount Management" PAM profile is active,
ssh-session crashes most of the time.
If it happens to work, the userid with encrypted home gets it mounted.
- if I disable the ecryptfs PAM profile, sshd-session seems to work
reliably. Of course the userid with encrypted home doesn't get it
mounted automatically, but it can be mounted manually.
I've also tried to downgrade ecryptfs-utils from 111-8 to 111-7, it
still crashes.
# Logging from a Debian 12 VM (nothing customized, no pubkey, no ControlPath).
Target user has a regular home
# journal log
mai 06 18:07:51 deb-trixie-alpha systemd[1]: Started ssh.service - OpenBSD
Secure Shell server.
mai 06 18:08:07 deb-trixie-alpha kernel: sshd-session[3627]: segfault at
7ffe1baf3d2c ip 00007f91fca6c61d sp 00007ffe1baf3ce0 error 6 in
libc.so.6[6261d,7f91fca32000+165000] likely on CPU 1 (core 0, socket 1)
mai 06 18:08:07 deb-trixie-alpha kernel: Code: 59 ec ff ff e8 a4 a5 0b 00 0f 1f
40 00 41 57 49 89 f7 41 56 49 89 d6 41 55 41 54 55 53 48 89 fb 4c 89 ff 48 81
ec f8 04 00 00 <89> 4c 24 4c 48 89 74 24 70 be 25 00 00 00 64 48 8b 04 25 28 00
00
mai 06 18:08:07 deb-trixie-alpha systemd-coredump[3630]: Process 3627
(sshd-session) of user 0 terminated abnormally with signal 11/SEGV,
processing...
mai 06 18:08:07 deb-trixie-alpha systemd[1]: Started
systemd-coredump@12-3630-0.service - Process Core Dump (PID 3630/UID 0).
mai 06 18:08:07 deb-trixie-alpha systemd-coredump[3631]: [🡕] Process 3627
(sshd-session) of user 0 dumped core.
Module libsystemd.so.0
from deb systemd-257.5-2.amd64
Module pam_systemd.so
from deb systemd-257.5-2.amd64
Module pam_wtmpdb.so
from deb wtmpdb-0.73.0-2.amd64
Module libzstd.so.1
from deb libzstd-1.5.7+dfsg-1.amd64
Module libwtmpdb.so.0
from deb wtmpdb-0.73.0-2.amd64
Stack trace of thread
3627:
#0 0x00007f91fca6c61d
__printf_buffer (libc.so.6 + 0x6261d)
#1 0x00007f91fca91a6b
__vasprintf_internal (libc.so.6 + 0x87a6b)
#2 0x00007f91fcb24bef
___asprintf_chk (libc.so.6 + 0x11abef)
#3 0x00007f91fd23b3d7
n/a (pam_ecryptfs.so + 0x23d7)
#4 0x00007f91fd23bada
pam_sm_authenticate (pam_ecryptfs.so + 0x2ada)
#5 0x00007f91fd4754de
n/a (libpam.so.0 + 0x44de)
#6 0x00007f91fd474be3
pam_authenticate (libpam.so.0 + 0x3be3)
#7 0x0000556469253a70
n/a (/usr/lib/openssh/sshd-session + 0x46a70)
#8 0x000055646921fa8b
n/a (/usr/lib/openssh/sshd-session + 0x12a8b)
#9 0x000055646923fab7
n/a (/usr/lib/openssh/sshd-session + 0x32ab7)
#10 0x000055646924266e
n/a (/usr/lib/openssh/sshd-session + 0x3566e)
#11 0x0000556469245b96
n/a (/usr/lib/openssh/sshd-session + 0x38b96)
#12 0x000055646921d621
n/a (/usr/lib/openssh/sshd-session + 0x10621)
#13 0x00007f91fca33ca8
__libc_start_call_main (libc.so.6 + 0x29ca8)
#14 0x00007f91fca33d65
__libc_start_main_impl (libc.so.6 + 0x29d65)
#15 0x000055646921e561
n/a (/usr/lib/openssh/sshd-session + 0x11561)
ELF object binary
architecture: AMD x86-64
mai 06 18:08:07 deb-trixie-alpha systemd[1]:
systemd-coredump@12-3630-0.service: Deactivated successfully.
mai 06 18:08:07 deb-trixie-alpha sshd[3623]: error: session process 3627 for
connection from fe80::5054:ff:fe30:ecda%enp1s0 to
fe80::a974:6230:38a9:f5b5%enp1s0 killed by signal 11
root@deb-trixie-alpha:/home/michel#
DEBUGINFOD_URLS=https://debuginfod.debian.net/ coredumpctl debug 3627
PID: 3627 (sshd-session)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Tue 2025-05-06 18:08:07 CEST (2min 47s ago)
Command Line: $'sshd-session: michel [priv]'
Executable: /usr/lib/openssh/sshd-session
Control Group: /system.slice/ssh.service
Unit: ssh.service
Slice: system.slice
Boot ID: 33ad258481554593ac76792131d08d1a
Machine ID: 87feedede00d4aef96623470c129b227
Hostname: deb-trixie-alpha
Storage:
/var/lib/systemd/coredump/core.sshd-session.0.33ad258481554593ac76792131d08d1a.3627.1746547687000000.zst
(present)
Size on Disk: 314.2K
Message: Process 3627 (sshd-session) of user 0 dumped core.
Module libsystemd.so.0 from deb systemd-257.5-2.amd64
Module pam_systemd.so from deb systemd-257.5-2.amd64
Module pam_wtmpdb.so from deb wtmpdb-0.73.0-2.amd64
Module libzstd.so.1 from deb libzstd-1.5.7+dfsg-1.amd64
Module libwtmpdb.so.0 from deb wtmpdb-0.73.0-2.amd64
Stack trace of thread 3627:
#0 0x00007f91fca6c61d __printf_buffer (libc.so.6 + 0x6261d)
#1 0x00007f91fca91a6b __vasprintf_internal (libc.so.6 +
0x87a6b)
#2 0x00007f91fcb24bef ___asprintf_chk (libc.so.6 + 0x11abef)
#3 0x00007f91fd23b3d7 n/a (pam_ecryptfs.so + 0x23d7)
#4 0x00007f91fd23bada pam_sm_authenticate (pam_ecryptfs.so +
0x2ada)
#5 0x00007f91fd4754de n/a (libpam.so.0 + 0x44de)
#6 0x00007f91fd474be3 pam_authenticate (libpam.so.0 + 0x3be3)
#7 0x0000556469253a70 n/a (/usr/lib/openssh/sshd-session +
0x46a70)
#8 0x000055646921fa8b n/a (/usr/lib/openssh/sshd-session +
0x12a8b)
#9 0x000055646923fab7 n/a (/usr/lib/openssh/sshd-session +
0x32ab7)
#10 0x000055646924266e n/a (/usr/lib/openssh/sshd-session +
0x3566e)
#11 0x0000556469245b96 n/a (/usr/lib/openssh/sshd-session +
0x38b96)
#12 0x000055646921d621 n/a (/usr/lib/openssh/sshd-session +
0x10621)
#13 0x00007f91fca33ca8 __libc_start_call_main (libc.so.6 +
0x29ca8)
#14 0x00007f91fca33d65 __libc_start_main_impl (libc.so.6 +
0x29d65)
#15 0x000055646921e561 n/a (/usr/lib/openssh/sshd-session +
0x11561)
ELF object binary architecture: AMD x86-64
GNU gdb (Debian 16.3-1) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/openssh/sshd-session...
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.debian.net/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
(No debugging symbols found in /usr/lib/openssh/sshd-session)
[New LWP 3627]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `sshd-session: michel [priv] '.
Program terminated with signal SIGSEGV, Segmentation fault.
Download failed: Argument invalide. Continuing without source file
./stdio-common/./stdio-common/vfprintf-internal.c.
#0 0x00007f91fca6c61d in __printf_buffer (buf=buf@entry=0x7ffe1baf4210,
format=0x7f91fd23d000 "%s/.ecryptfs/%s", ap=ap@entry=0x7ffe1baf4340,
mode_flags=mode_flags@entry=2) at ./stdio-common/vfprintf-internal.c:600
warning: 600 ./stdio-common/vfprintf-internal.c: Aucun fichier ou dossier de
ce nom
(gdb) bt
#0 0x00007f91fca6c61d in __printf_buffer (buf=buf@entry=0x7ffe1baf4210,
format=0x7f91fd23d000 "%s/.ecryptfs/%s", ap=ap@entry=0x7ffe1baf4340,
mode_flags=mode_flags@entry=2) at ./stdio-common/vfprintf-internal.c:600
#1 0x00007f91fca91a6b in __vasprintf_internal (result=0x7ffe1baf4428,
format=<optimized out>, args=args@entry=0x7ffe1baf4340,
mode_flags=mode_flags@entry=2) at ./libio/vasprintf.c:102
#2 0x00007f91fcb24bef in ___asprintf_chk
(result_ptr=result_ptr@entry=0x7ffe1baf4428, flag=flag@entry=1,
format=format@entry=0x7f91fd23d000 "%s/.ecryptfs/%s") at
./debug/asprintf_chk.c:34
#3 0x00007f91fd23b3d7 in asprintf (__fmt=0x7f91fd23d000 "%s/.ecryptfs/%s",
__ptr=0x7ffe1baf4428) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:137
#4 file_exists_dotecryptfs (homedir=homedir@entry=0x556481675f3d
"/home/michel", filename=filename@entry=0x7f91fd23d026 "auto-mount") at
./src/pam_ecryptfs/pam_ecryptfs.c:55
#5 0x00007f91fd23bada in pam_sm_authenticate (pamh=<optimized out>,
flags=<optimized out>, argc=<optimized out>, argv=<optimized out>) at
./src/pam_ecryptfs/pam_ecryptfs.c:169
#6 0x00007f91fd4754de in _pam_dispatch_aux (pamh=0x5564816c6a20, flags=1,
h=0x5564816c6a20, resumed=<optimized out>, use_cached_chain=<optimized out>) at
../libpam/pam_dispatch.c:110
#7 _pam_dispatch (pamh=pamh@entry=0x5564816aba90, flags=1,
choice=choice@entry=1) at ../libpam/pam_dispatch.c:411
#8 0x00007f91fd474be3 in pam_authenticate (pamh=0x5564816aba90,
flags=<optimized out>) at ../libpam/pam_auth.c:34
#9 0x0000556469253a70 in ?? ()
#10 0x000055646921fa8b in ?? ()
#11 0x000055646923fab7 in ?? ()
#12 0x000055646924266e in ?? ()
#13 0x0000556469245b96 in ?? ()
#14 0x000055646921d621 in ?? ()
#15 0x00007f91fca33ca8 in __libc_start_call_main
(main=main@entry=0x55646921be20, argc=argc@entry=3,
argv=argv@entry=0x7ffe1bb351d8) at ../sysdeps/nptl/libc_start_call_main.h:58
#16 0x00007f91fca33d65 in __libc_start_main_impl (main=0x55646921be20, argc=3,
argv=0x7ffe1bb351d8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffe1bb351c8) at ../csu/libc-start.c:360
#17 0x000055646921e561 in ?? ()
(gdb)
michel@debian12:~$ ssh -vvv michel@deb-trixie-alpha
OpenSSH_9.2p1 Debian-2+deb12u5, OpenSSL 3.0.15 3 Sep 2024
debug1: Reading configuration data /home/michel/.ssh/config
debug1: /home/michel/.ssh/config line 9: Applying options for deb-trixie-alpha
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf
matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname fe80::a974:6230:38a9:f5b5%enp1s0 is
address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' ->
'/home/michel/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' ->
'/home/michel/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to fe80::a974:6230:38a9:f5b5%enp1s0
[fe80::a974:6230:38a9:f5b5%enp1s0] port 22.
debug3: set_sock_tos: set socket 3 IPV6_TCLASS 0x10
debug1: Connection established.
debug1: identity file /home/michel/.ssh/id_rsa type -1
debug1: identity file /home/michel/.ssh/id_rsa-cert type -1
debug1: identity file /home/michel/.ssh/id_ecdsa type -1
debug1: identity file /home/michel/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/michel/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/michel/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/michel/.ssh/id_ed25519 type -1
debug1: identity file /home/michel/.ssh/id_ed25519-cert type -1
debug1: identity file /home/michel/.ssh/id_ed25519_sk type -1
debug1: identity file /home/michel/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/michel/.ssh/id_xmss type -1
debug1: identity file /home/michel/.ssh/id_xmss-cert type -1
debug1: identity file /home/michel/.ssh/id_dsa type -1
debug1: identity file /home/michel/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u5
debug1: Remote protocol version 2.0, remote software version OpenSSH_10.0p2
Debian-2dirname1
debug1: compat_banner: match: OpenSSH_10.0p2 Debian-2dirname1 pat OpenSSH*
compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to fe80::a974:6230:38a9:f5b5%enp1s0:22 as 'michel'
debug3: record_hostkey: found key type ED25519 in file
/home/michel/.ssh/known_hosts:5
debug3: load_hostkeys_file: loaded 1 keys from fe80::a974:6230:38a9:f5b5%enp1s0
debug1: load_hostkeys: fopen /home/michel/.ssh/known_hosts2: No such file or
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or
directory
debug3: order_hostkeyalgs: have matching best-preference key type
ssh-ed25519-cert-...@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms:
sntrup761x25519-sha512,sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-...@openssh.com
debug2: host key algorithms:
ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-cert-...@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos:
chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
debug2: ciphers stoc:
chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
debug2: MACs ctos:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,z...@openssh.com,zlib
debug2: compression stoc: none,z...@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms:
mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,ext-info-s,kex-strict-s-...@openssh.com
debug2: host key algorithms:
rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos:
chacha20-poly1...@openssh.com,aes128-...@openssh.com,aes256-...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: ciphers stoc:
chacha20-poly1...@openssh.com,aes128-...@openssh.com,aes256-...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: MACs ctos:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,z...@openssh.com
debug2: compression stoc: none,z...@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: sntrup761x25519-sha512
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1...@openssh.com MAC:
<implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1...@openssh.com MAC:
<implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519
SHA256:VxuoELDmQ0GaiEPmkrmSCSrL2i0TyvLn1e1ndh6yOVs
debug3: record_hostkey: found key type ED25519 in file
/home/michel/.ssh/known_hosts:5
debug3: load_hostkeys_file: loaded 1 keys from fe80::a974:6230:38a9:f5b5%enp1s0
debug1: load_hostkeys: fopen /home/michel/.ssh/known_hosts2: No such file or
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or
directory
debug1: Host 'fe80::a974:6230:38a9:f5b5%enp1s0' is known and matches the
ED25519 host key.
debug1: Found key in /home/michel/.ssh/known_hosts:5
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/michel/.ssh/id_rsa
debug1: Will attempt key: /home/michel/.ssh/id_ecdsa
debug1: Will attempt key: /home/michel/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/michel/.ssh/id_ed25519
debug1: Will attempt key: /home/michel/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/michel/.ssh/id_xmss
debug1: Will attempt key: /home/michel/.ssh/id_dsa
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info:
server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256>
debug1: kex_input_ext_info: publickey-hostbo...@openssh.com=<0>
debug1: kex_input_ext_info: p...@openssh.com (unrecognised)
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/michel/.ssh/id_rsa
debug3: no such identity: /home/michel/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_ecdsa
debug3: no such identity: /home/michel/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_ecdsa_sk
debug3: no such identity: /home/michel/.ssh/id_ecdsa_sk: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_ed25519
debug3: no such identity: /home/michel/.ssh/id_ed25519: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_ed25519_sk
debug3: no such identity: /home/michel/.ssh/id_ed25519_sk: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_xmss
debug3: no such identity: /home/michel/.ssh/id_xmss: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_dsa
debug3: no such identity: /home/michel/.ssh/id_dsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
michel@fe80::a974:6230:38a9:f5b5%enp1s0's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
Connection closed by fe80::a974:6230:38a9:f5b5%enp1s0 port 22
# Logging from a Debian 12 VM (nothing customized, no pubkey, no ControlPath).
Target user has a ecryptfs home
# journal log, login OK (yes, it happens sometimes ! :-)
mai 06 18:17:47 deb-trixie-alpha sshd-session[3872]: pam_ecryptfs: Passphrase
file wrapped
mai 06 18:17:47 deb-trixie-alpha sshd-session[3869]: Accepted password for test
from fe80::5054:ff:fe30:ecda%enp1s0 port 40516 ssh2
mai 06 18:17:47 deb-trixie-alpha sshd-session[3869]: pam_unix(sshd:session):
session opened for user test(uid=1001) by test(uid=0)
mai 06 18:17:47 deb-trixie-alpha systemd[1]: Created slice user-1001.slice -
User Slice of UID 1001.
mai 06 18:17:47 deb-trixie-alpha systemd[1]: Starting
user-runtime-dir@1001.service - User Runtime Directory /run/user/1001...
mai 06 18:17:48 deb-trixie-alpha systemd-logind[704]: New session 7 of user
test.
mai 06 18:17:48 deb-trixie-alpha systemd[1]: Finished
user-runtime-dir@1001.service - User Runtime Directory /run/user/1001.
mai 06 18:17:48 deb-trixie-alpha systemd[1]: Starting user@1001.service - User
Manager for UID 1001...
mai 06 18:17:48 deb-trixie-alpha (systemd)[3877]:
pam_unix(systemd-user:session): session opened for user test(uid=1001) by
test(uid=0)
mai 06 18:17:48 deb-trixie-alpha systemd-logind[704]: New session 8 of user
test.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Queued start job for default
target default.target.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Created slice app.slice - User
Application Slice.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Reached target paths.target -
Paths.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Reached target timers.target -
Timers.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Starting dbus.socket - D-Bus
User Message Bus Socket...
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on dirmngr.socket -
GnuPG network certificate management daemon.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on
gpg-agent-browser.socket - GnuPG cryptographic agent and passphrase cache
(access for web browsers).
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on
gpg-agent-extra.socket - GnuPG cryptographic agent and passphrase cache
(restricted).
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Starting gpg-agent-ssh.socket -
GnuPG cryptographic agent (ssh-agent emulation)...
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Starting gpg-agent.socket -
GnuPG cryptographic agent and passphrase cache...
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on keyboxd.socket -
GnuPG public key management service.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Starting ssh-agent.socket -
OpenSSH Agent socket...
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on dbus.socket -
D-Bus User Message Bus Socket.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on
gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation).
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on gpg-agent.socket -
GnuPG cryptographic agent and passphrase cache.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Listening on ssh-agent.socket -
OpenSSH Agent socket.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Reached target sockets.target -
Sockets.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Reached target basic.target -
Basic System.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Reached target default.target -
Main User Target.
mai 06 18:17:48 deb-trixie-alpha systemd[3877]: Startup finished in 125ms.
mai 06 18:17:48 deb-trixie-alpha systemd[1]: Started user@1001.service - User
Manager for UID 1001.
mai 06 18:17:48 deb-trixie-alpha systemd[1]: Started session-7.scope - Session
7 of User test.
# journal log, crash - ecryptfs home was already mounted (from previous logon
OK)
ai 06 18:21:02 deb-trixie-alpha kernel: sshd-session[4046]: segfault at
7fff59dfcf1c ip 00007f8b3ac6c61d sp 00007fff59dfced0 error 6 in
libc.so.6[6261d,7f8b3ac32000+165000] likely on CPU 1 (core 0, socket 1)
mai 06 18:21:02 deb-trixie-alpha kernel: Code: 59 ec ff ff e8 a4 a5 0b 00 0f 1f
40 00 41 57 49 89 f7 41 56 49 89 d6 41 55 41 54 55 53 48 89 fb 4c 89 ff 48 81
ec f8 04 00 00 <89> 4c 24 4c 48 89 74 24 70 be 25 00 00 00 64 48 8b 04 25 28 00
00
mai 06 18:21:02 deb-trixie-alpha systemd-coredump[4049]: Process 4046
(sshd-session) of user 0 terminated abnormally with signal 11/SEGV,
processing...
mai 06 18:21:02 deb-trixie-alpha systemd[1]: Started
systemd-coredump@13-4049-0.service - Process Core Dump (PID 4049/UID 0).
mai 06 18:21:02 deb-trixie-alpha systemd-coredump[4050]: [🡕] Process 4046
(sshd-session) of user 0 dumped core.
Module libsystemd.so.0
from deb systemd-257.5-2.amd64
Module pam_systemd.so
from deb systemd-257.5-2.amd64
Module pam_wtmpdb.so
from deb wtmpdb-0.73.0-2.amd64
Module libzstd.so.1
from deb libzstd-1.5.7+dfsg-1.amd64
Module libwtmpdb.so.0
from deb wtmpdb-0.73.0-2.amd64
Stack trace of thread
4046:
#0 0x00007f8b3ac6c61d
__printf_buffer (libc.so.6 + 0x6261d)
#1 0x00007f8b3ac91a6b
__vasprintf_internal (libc.so.6 + 0x87a6b)
#2 0x00007f8b3ad24bef
___asprintf_chk (libc.so.6 + 0x11abef)
#3 0x00007f8b3a7b13d7
n/a (pam_ecryptfs.so + 0x23d7)
#4 0x00007f8b3a7b1ada
pam_sm_authenticate (pam_ecryptfs.so + 0x2ada)
#5 0x00007f8b3b6004de
n/a (libpam.so.0 + 0x44de)
#6 0x00007f8b3b5ffbe3
pam_authenticate (libpam.so.0 + 0x3be3)
#7 0x00005559cd16fa70
n/a (/usr/lib/openssh/sshd-session + 0x46a70)
#8 0x00005559cd13ba8b
n/a (/usr/lib/openssh/sshd-session + 0x12a8b)
#9 0x00005559cd15bab7
n/a (/usr/lib/openssh/sshd-session + 0x32ab7)
#10 0x00005559cd15e66e
n/a (/usr/lib/openssh/sshd-session + 0x3566e)
#11 0x00005559cd161b96
n/a (/usr/lib/openssh/sshd-session + 0x38b96)
#12 0x00005559cd139621
n/a (/usr/lib/openssh/sshd-session + 0x10621)
#13 0x00007f8b3ac33ca8
__libc_start_call_main (libc.so.6 + 0x29ca8)
#14 0x00007f8b3ac33d65
__libc_start_main_impl (libc.so.6 + 0x29d65)
#15 0x00005559cd13a561
n/a (/usr/lib/openssh/sshd-session + 0x11561)
ELF object binary
architecture: AMD x86-64
mai 06 18:21:02 deb-trixie-alpha systemd[1]:
systemd-coredump@13-4049-0.service: Deactivated successfully.
mai 06 18:21:02 deb-trixie-alpha sshd[3623]: error: session process 4046 for
connection from fe80::5054:ff:fe30:ecda%enp1s0 to
fe80::a974:6230:38a9:f5b5%enp1s0 killed by signal 11
mai 06 18:21:06 deb-trixie-alpha systemd[1]: Stopping user@1001.service - User
Manager for UID 1001...
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Activating special unit
exit.target...
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopped target default.target -
Main User Target.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopped target basic.target -
Basic System.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopped target paths.target -
Paths.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopped target sockets.target -
Sockets.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopped target timers.target -
Timers.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed dbus.socket - D-Bus User
Message Bus Socket.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed dirmngr.socket - GnuPG
network certificate management daemon.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed gpg-agent-browser.socket
- GnuPG cryptographic agent and passphrase cache (access for web browsers).
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed gpg-agent-extra.socket -
GnuPG cryptographic agent and passphrase cache (restricted).
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopping gpg-agent-ssh.socket -
GnuPG cryptographic agent (ssh-agent emulation)...
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopping gpg-agent.socket -
GnuPG cryptographic agent and passphrase cache...
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed keyboxd.socket - GnuPG
public key management service.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Stopping ssh-agent.socket -
OpenSSH Agent socket...
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed gpg-agent.socket - GnuPG
cryptographic agent and passphrase cache.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed ssh-agent.socket -
OpenSSH Agent socket.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Closed gpg-agent-ssh.socket -
GnuPG cryptographic agent (ssh-agent emulation).
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Removed slice app.slice - User
Application Slice.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Reached target shutdown.target
- Shutdown.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Finished systemd-exit.service -
Exit the Session.
mai 06 18:21:06 deb-trixie-alpha systemd[3877]: Reached target exit.target -
Exit the Session.
mai 06 18:21:06 deb-trixie-alpha systemd-logind[704]: Removed session 8.
mai 06 18:21:06 deb-trixie-alpha systemd[1]: user@1001.service: Deactivated
successfully.
mai 06 18:21:06 deb-trixie-alpha systemd[1]: Stopped user@1001.service - User
Manager for UID 1001.
mai 06 18:21:06 deb-trixie-alpha systemd[1]: Stopping
user-runtime-dir@1001.service - User Runtime Directory /run/user/1001...
mai 06 18:21:06 deb-trixie-alpha systemd[1]: run-user-1001.mount: Deactivated
successfully.
mai 06 18:21:06 deb-trixie-alpha systemd[1]: user-runtime-dir@1001.service:
Deactivated successfully.
mai 06 18:21:06 deb-trixie-alpha systemd[1]: Stopped
user-runtime-dir@1001.service - User Runtime Directory /run/user/1001.
mai 06 18:21:06 deb-trixie-alpha systemd[1]: Removed slice user-1001.slice -
User Slice of UID 1001.
root@deb-trixie-alpha:/home/michel#
DEBUGINFOD_URLS=https://debuginfod.debian.net/ coredumpctl debug 4046
PID: 4046 (sshd-session)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Tue 2025-05-06 18:21:02 CEST (1min 29s ago)
Command Line: $'sshd-session: test [priv]'
Executable: /usr/lib/openssh/sshd-session
Control Group: /system.slice/ssh.service
Unit: ssh.service
Slice: system.slice
Boot ID: 33ad258481554593ac76792131d08d1a
Machine ID: 87feedede00d4aef96623470c129b227
Hostname: deb-trixie-alpha
Storage:
/var/lib/systemd/coredump/core.sshd-session.0.33ad258481554593ac76792131d08d1a.4046.1746548462000000.zst
(present)
Size on Disk: 315.6K
Message: Process 4046 (sshd-session) of user 0 dumped core.
Module libsystemd.so.0 from deb systemd-257.5-2.amd64
Module pam_systemd.so from deb systemd-257.5-2.amd64
Module pam_wtmpdb.so from deb wtmpdb-0.73.0-2.amd64
Module libzstd.so.1 from deb libzstd-1.5.7+dfsg-1.amd64
Module libwtmpdb.so.0 from deb wtmpdb-0.73.0-2.amd64
Stack trace of thread 4046:
#0 0x00007f8b3ac6c61d __printf_buffer (libc.so.6 + 0x6261d)
#1 0x00007f8b3ac91a6b __vasprintf_internal (libc.so.6 +
0x87a6b)
#2 0x00007f8b3ad24bef ___asprintf_chk (libc.so.6 + 0x11abef)
#3 0x00007f8b3a7b13d7 n/a (pam_ecryptfs.so + 0x23d7)
#4 0x00007f8b3a7b1ada pam_sm_authenticate (pam_ecryptfs.so +
0x2ada)
#5 0x00007f8b3b6004de n/a (libpam.so.0 + 0x44de)
#6 0x00007f8b3b5ffbe3 pam_authenticate (libpam.so.0 + 0x3be3)
#7 0x00005559cd16fa70 n/a (/usr/lib/openssh/sshd-session +
0x46a70)
#8 0x00005559cd13ba8b n/a (/usr/lib/openssh/sshd-session +
0x12a8b)
#9 0x00005559cd15bab7 n/a (/usr/lib/openssh/sshd-session +
0x32ab7)
#10 0x00005559cd15e66e n/a (/usr/lib/openssh/sshd-session +
0x3566e)
#11 0x00005559cd161b96 n/a (/usr/lib/openssh/sshd-session +
0x38b96)
#12 0x00005559cd139621 n/a (/usr/lib/openssh/sshd-session +
0x10621)
#13 0x00007f8b3ac33ca8 __libc_start_call_main (libc.so.6 +
0x29ca8)
#14 0x00007f8b3ac33d65 __libc_start_main_impl (libc.so.6 +
0x29d65)
#15 0x00005559cd13a561 n/a (/usr/lib/openssh/sshd-session +
0x11561)
ELF object binary architecture: AMD x86-64
GNU gdb (Debian 16.3-1) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/openssh/sshd-session...
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.debian.net/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
(No debugging symbols found in /usr/lib/openssh/sshd-session)
[New LWP 4046]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `sshd-session: test [priv] '.
Program terminated with signal SIGSEGV, Segmentation fault.
Download failed: Argument invalide. Continuing without source file
./stdio-common/./stdio-common/vfprintf-internal.c.
#0 0x00007f8b3ac6c61d in __printf_buffer (buf=buf@entry=0x7fff59dfd400,
format=0x7f8b3a7b3000 "%s/.ecryptfs/%s", ap=ap@entry=0x7fff59dfd530,
mode_flags=mode_flags@entry=2) at ./stdio-common/vfprintf-internal.c:600
warning: 600 ./stdio-common/vfprintf-internal.c: Aucun fichier ou dossier de
ce nom
(gdb) bt
#0 0x00007f8b3ac6c61d in __printf_buffer (buf=buf@entry=0x7fff59dfd400,
format=0x7f8b3a7b3000 "%s/.ecryptfs/%s", ap=ap@entry=0x7fff59dfd530,
mode_flags=mode_flags@entry=2) at ./stdio-common/vfprintf-internal.c:600
#1 0x00007f8b3ac91a6b in __vasprintf_internal (result=0x7fff59dfd618,
format=<optimized out>, args=args@entry=0x7fff59dfd530,
mode_flags=mode_flags@entry=2) at ./libio/vasprintf.c:102
#2 0x00007f8b3ad24bef in ___asprintf_chk
(result_ptr=result_ptr@entry=0x7fff59dfd618, flag=flag@entry=1,
format=format@entry=0x7f8b3a7b3000 "%s/.ecryptfs/%s") at
./debug/asprintf_chk.c:34
#3 0x00007f8b3a7b13d7 in asprintf (__fmt=0x7f8b3a7b3000 "%s/.ecryptfs/%s",
__ptr=0x7fff59dfd618) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:137
#4 file_exists_dotecryptfs (homedir=homedir@entry=0x5559dc9ddf44 "/home/test",
filename=filename@entry=0x7f8b3a7b3026 "auto-mount") at
./src/pam_ecryptfs/pam_ecryptfs.c:55
#5 0x00007f8b3a7b1ada in pam_sm_authenticate (pamh=<optimized out>,
flags=<optimized out>, argc=<optimized out>, argv=<optimized out>) at
./src/pam_ecryptfs/pam_ecryptfs.c:169
#6 0x00007f8b3b6004de in _pam_dispatch_aux (pamh=0x5559dca2ea10, flags=1,
h=0x5559dca2ea10, resumed=<optimized out>, use_cached_chain=<optimized out>) at
../libpam/pam_dispatch.c:110
#7 _pam_dispatch (pamh=pamh@entry=0x5559dca13a90, flags=1,
choice=choice@entry=1) at ../libpam/pam_dispatch.c:411
#8 0x00007f8b3b5ffbe3 in pam_authenticate (pamh=0x5559dca13a90,
flags=<optimized out>) at ../libpam/pam_auth.c:34
#9 0x00005559cd16fa70 in ?? ()
#10 0x00005559cd13ba8b in ?? ()
#11 0x00005559cd15bab7 in ?? ()
#12 0x00005559cd15e66e in ?? ()
#13 0x00005559cd161b96 in ?? ()
#14 0x00005559cd139621 in ?? ()
#15 0x00007f8b3ac33ca8 in __libc_start_call_main
(main=main@entry=0x5559cd137e20, argc=argc@entry=3,
argv=argv@entry=0x7fff59e3e3c8) at ../sysdeps/nptl/libc_start_call_main.h:58
#16 0x00007f8b3ac33d65 in __libc_start_main_impl (main=0x5559cd137e20, argc=3,
argv=0x7fff59e3e3c8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fff59e3e3b8) at ../csu/libc-start.c:360
#17 0x00005559cd13a561 in ?? ()
michel@debian12:~$ ssh -vvv test@deb-trixie-alpha
OpenSSH_9.2p1 Debian-2+deb12u5, OpenSSL 3.0.15 3 Sep 2024
debug1: Reading configuration data /home/michel/.ssh/config
debug1: /home/michel/.ssh/config line 9: Applying options for deb-trixie-alpha
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf
matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname fe80::a974:6230:38a9:f5b5%enp1s0 is
address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' ->
'/home/michel/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' ->
'/home/michel/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to fe80::a974:6230:38a9:f5b5%enp1s0
[fe80::a974:6230:38a9:f5b5%enp1s0] port 22.
debug3: set_sock_tos: set socket 3 IPV6_TCLASS 0x10
debug1: Connection established.
debug1: identity file /home/michel/.ssh/id_rsa type -1
debug1: identity file /home/michel/.ssh/id_rsa-cert type -1
debug1: identity file /home/michel/.ssh/id_ecdsa type -1
debug1: identity file /home/michel/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/michel/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/michel/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/michel/.ssh/id_ed25519 type -1
debug1: identity file /home/michel/.ssh/id_ed25519-cert type -1
debug1: identity file /home/michel/.ssh/id_ed25519_sk type -1
debug1: identity file /home/michel/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/michel/.ssh/id_xmss type -1
debug1: identity file /home/michel/.ssh/id_xmss-cert type -1
debug1: identity file /home/michel/.ssh/id_dsa type -1
debug1: identity file /home/michel/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u5
debug1: Remote protocol version 2.0, remote software version OpenSSH_10.0p2
Debian-2dirname1
debug1: compat_banner: match: OpenSSH_10.0p2 Debian-2dirname1 pat OpenSSH*
compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to fe80::a974:6230:38a9:f5b5%enp1s0:22 as 'test'
debug3: record_hostkey: found key type ED25519 in file
/home/michel/.ssh/known_hosts:5
debug3: record_hostkey: found key type RSA in file
/home/michel/.ssh/known_hosts:6
debug3: record_hostkey: found key type ECDSA in file
/home/michel/.ssh/known_hosts:7
debug3: load_hostkeys_file: loaded 3 keys from fe80::a974:6230:38a9:f5b5%enp1s0
debug1: load_hostkeys: fopen /home/michel/.ssh/known_hosts2: No such file or
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or
directory
debug3: order_hostkeyalgs: have matching best-preference key type
ssh-ed25519-cert-...@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms:
sntrup761x25519-sha512,sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-...@openssh.com
debug2: host key algorithms:
ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-cert-...@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos:
chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
debug2: ciphers stoc:
chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
debug2: MACs ctos:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,z...@openssh.com,zlib
debug2: compression stoc: none,z...@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms:
mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,ext-info-s,kex-strict-s-...@openssh.com
debug2: host key algorithms:
rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos:
chacha20-poly1...@openssh.com,aes128-...@openssh.com,aes256-...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: ciphers stoc:
chacha20-poly1...@openssh.com,aes128-...@openssh.com,aes256-...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: MACs ctos:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,z...@openssh.com
debug2: compression stoc: none,z...@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: sntrup761x25519-sha512
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1...@openssh.com MAC:
<implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1...@openssh.com MAC:
<implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519
SHA256:VxuoELDmQ0GaiEPmkrmSCSrL2i0TyvLn1e1ndh6yOVs
debug3: record_hostkey: found key type ED25519 in file
/home/michel/.ssh/known_hosts:5
debug3: record_hostkey: found key type RSA in file
/home/michel/.ssh/known_hosts:6
debug3: record_hostkey: found key type ECDSA in file
/home/michel/.ssh/known_hosts:7
debug3: load_hostkeys_file: loaded 3 keys from fe80::a974:6230:38a9:f5b5%enp1s0
debug1: load_hostkeys: fopen /home/michel/.ssh/known_hosts2: No such file or
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or
directory
debug1: Host 'fe80::a974:6230:38a9:f5b5%enp1s0' is known and matches the
ED25519 host key.
debug1: Found key in /home/michel/.ssh/known_hosts:5
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/michel/.ssh/id_rsa
debug1: Will attempt key: /home/michel/.ssh/id_ecdsa
debug1: Will attempt key: /home/michel/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/michel/.ssh/id_ed25519
debug1: Will attempt key: /home/michel/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/michel/.ssh/id_xmss
debug1: Will attempt key: /home/michel/.ssh/id_dsa
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info:
server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256>
debug1: kex_input_ext_info: publickey-hostbo...@openssh.com=<0>
debug1: kex_input_ext_info: p...@openssh.com (unrecognised)
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/michel/.ssh/id_rsa
debug3: no such identity: /home/michel/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_ecdsa
debug3: no such identity: /home/michel/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_ecdsa_sk
debug3: no such identity: /home/michel/.ssh/id_ecdsa_sk: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_ed25519
debug3: no such identity: /home/michel/.ssh/id_ed25519: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_ed25519_sk
debug3: no such identity: /home/michel/.ssh/id_ed25519_sk: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_xmss
debug3: no such identity: /home/michel/.ssh/id_xmss: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_dsa
debug3: no such identity: /home/michel/.ssh/id_dsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
test@fe80::a974:6230:38a9:f5b5%enp1s0's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
Connection closed by fe80::a974:6230:38a9:f5b5%enp1s0 port 22
# Logging from a Debian 12 VM (nothing customized, no pubkey, no ControlPath).
Target user has a ecryptfs home
# home not mounted, should be done through pam_ecryptfs (but it isn't due to
the crash)
# journal
mai 06 18:25:20 deb-trixie-alpha kernel: sshd-session[4249]: segfault at
7ffdfc5cfdb0 ip 00007f97a606f08b sp 00007ffdfc5cfd10 error 6 in
libc.so.6[6508b,7f97a6032000+165000] likely on CPU 1 (core 0, socket 1)
mai 06 18:25:20 deb-trixie-alpha kernel: Code: 66 66 2e 0f 1f 84 00 00 00 00 00
0f 1f 40 00 55 48 89 e5 41 57 41 56 4c 8d b5 b0 fb ff ff 41 55 41 54 53 48 81
ec a8 06 00 00 <48> 89 bd d0 f9 ff ff 48 89 b5 08 fa ff ff 48 89 95 68 f9 ff ff
89
mai 06 18:25:20 deb-trixie-alpha systemd-coredump[4252]: Process 4249
(sshd-session) of user 0 terminated abnormally with signal 11/SEGV,
processing...
mai 06 18:25:20 deb-trixie-alpha systemd[1]: Started
systemd-coredump@14-4252-0.service - Process Core Dump (PID 4252/UID 0).
mai 06 18:25:20 deb-trixie-alpha systemd-coredump[4253]: [🡕] Process 4249
(sshd-session) of user 0 dumped core.
Module libsystemd.so.0
from deb systemd-257.5-2.amd64
Module pam_systemd.so
from deb systemd-257.5-2.amd64
Module pam_wtmpdb.so
from deb wtmpdb-0.73.0-2.amd64
Module libzstd.so.1
from deb libzstd-1.5.7+dfsg-1.amd64
Module libwtmpdb.so.0
from deb wtmpdb-0.73.0-2.amd64
Stack trace of thread
4249:
#0 0x00007f97a606f08b
__vfscanf_internal (libc.so.6 + 0x6508b)
#1 0x00007f97a606343d
__GI___isoc23_sscanf (libc.so.6 + 0x5943d)
#2 0x00007f97a6117197
get_mnt_entry (libc.so.6 + 0x10d197)
#3 0x00007f97a6117603
__GI___getmntent_r (libc.so.6 + 0x10d603)
#4 0x00007f97a688d3f0
ecryptfs_private_is_mounted (libecryptfs.so.1 + 0x63f0)
#5 0x00007f97a68b1b05
pam_sm_authenticate (pam_ecryptfs.so + 0x2b05)
#6 0x00007f97a6b9a4de
n/a (libpam.so.0 + 0x44de)
#7 0x00007f97a6b99be3
pam_authenticate (libpam.so.0 + 0x3be3)
#8 0x000055e122acca70
n/a (/usr/lib/openssh/sshd-session + 0x46a70)
#9 0x000055e122a98a8b
n/a (/usr/lib/openssh/sshd-session + 0x12a8b)
#10 0x000055e122ab8ab7
n/a (/usr/lib/openssh/sshd-session + 0x32ab7)
#11 0x000055e122abb66e
n/a (/usr/lib/openssh/sshd-session + 0x3566e)
#12 0x000055e122abeb96
n/a (/usr/lib/openssh/sshd-session + 0x38b96)
#13 0x000055e122a96621
n/a (/usr/lib/openssh/sshd-session + 0x10621)
#14 0x00007f97a6033ca8
__libc_start_call_main (libc.so.6 + 0x29ca8)
#15 0x00007f97a6033d65
__libc_start_main_impl (libc.so.6 + 0x29d65)
#16 0x000055e122a97561
n/a (/usr/lib/openssh/sshd-session + 0x11561)
ELF object binary
architecture: AMD x86-64
mai 06 18:25:20 deb-trixie-alpha sshd[3623]: error: session process 4249 for
connection from fe80::5054:ff:fe30:ecda%enp1s0 to
fe80::a974:6230:38a9:f5b5%enp1s0 killed by signal 11
mai 06 18:25:20 deb-trixie-alpha systemd[1]:
systemd-coredump@14-4252-0.service: Deactivated successfully.
root@deb-trixie-alpha:/home/michel#
DEBUGINFOD_URLS=https://debuginfod.debian.net/ coredumpctl debug 4249
PID: 4249 (sshd-session)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Tue 2025-05-06 18:25:20 CEST (3min 45s ago)
Command Line: $'sshd-session: test [priv]'
Executable: /usr/lib/openssh/sshd-session
Control Group: /system.slice/ssh.service
Unit: ssh.service
Slice: system.slice
Boot ID: 33ad258481554593ac76792131d08d1a
Machine ID: 87feedede00d4aef96623470c129b227
Hostname: deb-trixie-alpha
Storage:
/var/lib/systemd/coredump/core.sshd-session.0.33ad258481554593ac76792131d08d1a.4249.1746548720000000.zst
(present)
Size on Disk: 316.3K
Message: Process 4249 (sshd-session) of user 0 dumped core.
Module libsystemd.so.0 from deb systemd-257.5-2.amd64
Module pam_systemd.so from deb systemd-257.5-2.amd64
Module pam_wtmpdb.so from deb wtmpdb-0.73.0-2.amd64
Module libzstd.so.1 from deb libzstd-1.5.7+dfsg-1.amd64
Module libwtmpdb.so.0 from deb wtmpdb-0.73.0-2.amd64
Stack trace of thread 4249:
#0 0x00007f97a606f08b __vfscanf_internal (libc.so.6 + 0x6508b)
#1 0x00007f97a606343d __GI___isoc23_sscanf (libc.so.6 +
0x5943d)
#2 0x00007f97a6117197 get_mnt_entry (libc.so.6 + 0x10d197)
#3 0x00007f97a6117603 __GI___getmntent_r (libc.so.6 + 0x10d603)
#4 0x00007f97a688d3f0 ecryptfs_private_is_mounted
(libecryptfs.so.1 + 0x63f0)
#5 0x00007f97a68b1b05 pam_sm_authenticate (pam_ecryptfs.so +
0x2b05)
#6 0x00007f97a6b9a4de n/a (libpam.so.0 + 0x44de)
#7 0x00007f97a6b99be3 pam_authenticate (libpam.so.0 + 0x3be3)
#8 0x000055e122acca70 n/a (/usr/lib/openssh/sshd-session +
0x46a70)
#9 0x000055e122a98a8b n/a (/usr/lib/openssh/sshd-session +
0x12a8b)
#10 0x000055e122ab8ab7 n/a (/usr/lib/openssh/sshd-session +
0x32ab7)
#11 0x000055e122abb66e n/a (/usr/lib/openssh/sshd-session +
0x3566e)
#12 0x000055e122abeb96 n/a (/usr/lib/openssh/sshd-session +
0x38b96)
#13 0x000055e122a96621 n/a (/usr/lib/openssh/sshd-session +
0x10621)
#14 0x00007f97a6033ca8 __libc_start_call_main (libc.so.6 +
0x29ca8)
#15 0x00007f97a6033d65 __libc_start_main_impl (libc.so.6 +
0x29d65)
#16 0x000055e122a97561 n/a (/usr/lib/openssh/sshd-session +
0x11561)
ELF object binary architecture: AMD x86-64
GNU gdb (Debian 16.3-1) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/openssh/sshd-session...
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.debian.net/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
(No debugging symbols found in /usr/lib/openssh/sshd-session)
[New LWP 4249]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `sshd-session: test [priv] '.
Program terminated with signal SIGSEGV, Segmentation fault.
Download failed: Argument invalide. Continuing without source file
./stdio-common/./stdio-common/vfscanf-internal.c.
#0 0x00007f97a606f08b in __vfscanf_internal (s=s@entry=0x7ffdfc5d0410,
format=format@entry=0x7f97a61b4da9 " %d %d ",
argptr=argptr@entry=0x7ffdfc5d03f8, mode_flags=mode_flags@entry=6) at
./stdio-common/vfscanf-internal.c:278
warning: 278 ./stdio-common/vfscanf-internal.c: Aucun fichier ou dossier de
ce nom
(gdb) bt
#0 0x00007f97a606f08b in __vfscanf_internal (s=s@entry=0x7ffdfc5d0410,
format=format@entry=0x7f97a61b4da9 " %d %d ",
argptr=argptr@entry=0x7ffdfc5d03f8, mode_flags=mode_flags@entry=6) at
./stdio-common/vfscanf-internal.c:278
#1 0x00007f97a606343d in __GI___isoc23_sscanf (s=0x55e12463af59 "0 0",
format=format@entry=0x7f97a61b4da9 " %d %d ") at
./stdio-common/isoc23_sscanf.c:31
#2 0x00007f97a6117197 in get_mnt_entry (stream=stream@entry=0x55e1245c42a0,
mp=mp@entry=0x55e12463af00, buffer=buffer@entry=0x55e12463af28 "sysfs",
bufsiz=bufsiz@entry=4096) at ./misc/mntent_r.c:166
#3 0x00007f97a6117603 in __GI___getmntent_r
(stream=stream@entry=0x55e1245c42a0, mp=0x55e12463af00, buffer=0x55e12463af28
"sysfs", bufsiz=bufsiz@entry=4096) at ./misc/mntent_r.c:191
#4 0x00007f97a6116ec2 in getmntent (stream=stream@entry=0x55e1245c42a0) at
./misc/mntent.c:57
#5 0x00007f97a688d3f0 in ecryptfs_private_is_mounted (dev=dev@entry=0x0,
mnt=mnt@entry=0x55e124638e30 "/home/test", sig=sig@entry=0x0,
mounting=mounting@entry=1) at ./src/libecryptfs/main.c:161
#6 0x00007f97a68b1b05 in pam_sm_authenticate (pamh=<optimized out>,
flags=<optimized out>, argc=<optimized out>, argv=<optimized out>) at
./src/pam_ecryptfs/pam_ecryptfs.c:172
#7 0x00007f97a6b9a4de in _pam_dispatch_aux (pamh=0x55e12462fa10, flags=1,
h=0x55e12462fa10, resumed=<optimized out>, use_cached_chain=<optimized out>) at
../libpam/pam_dispatch.c:110
#8 _pam_dispatch (pamh=pamh@entry=0x55e124614a90, flags=1,
choice=choice@entry=1) at ../libpam/pam_dispatch.c:411
#9 0x00007f97a6b99be3 in pam_authenticate (pamh=0x55e124614a90,
flags=<optimized out>) at ../libpam/pam_auth.c:34
#10 0x000055e122acca70 in ?? ()
#11 0x000055e122a98a8b in ?? ()
#12 0x000055e122ab8ab7 in ?? ()
#13 0x000055e122abb66e in ?? ()
#14 0x000055e122abeb96 in ?? ()
#15 0x000055e122a96621 in ?? ()
#16 0x00007f97a6033ca8 in __libc_start_call_main
(main=main@entry=0x55e122a94e20, argc=argc@entry=3,
argv=argv@entry=0x7ffdfc6117c8) at ../sysdeps/nptl/libc_start_call_main.h:58
#17 0x00007f97a6033d65 in __libc_start_main_impl (main=0x55e122a94e20, argc=3,
argv=0x7ffdfc6117c8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffdfc6117b8) at ../csu/libc-start.c:360
#18 0x000055e122a97561 in ?? ()
(gdb)
michel@debian12:~$ ssh -vvv test@deb-trixie-alpha
OpenSSH_9.2p1 Debian-2+deb12u5, OpenSSL 3.0.15 3 Sep 2024
debug1: Reading configuration data /home/michel/.ssh/config
debug1: /home/michel/.ssh/config line 9: Applying options for deb-trixie-alpha
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf
matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname fe80::a974:6230:38a9:f5b5%enp1s0 is
address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' ->
'/home/michel/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' ->
'/home/michel/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to fe80::a974:6230:38a9:f5b5%enp1s0
[fe80::a974:6230:38a9:f5b5%enp1s0] port 22.
debug3: set_sock_tos: set socket 3 IPV6_TCLASS 0x10
debug1: Connection established.
debug1: identity file /home/michel/.ssh/id_rsa type -1
debug1: identity file /home/michel/.ssh/id_rsa-cert type -1
debug1: identity file /home/michel/.ssh/id_ecdsa type -1
debug1: identity file /home/michel/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/michel/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/michel/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/michel/.ssh/id_ed25519 type -1
debug1: identity file /home/michel/.ssh/id_ed25519-cert type -1
debug1: identity file /home/michel/.ssh/id_ed25519_sk type -1
debug1: identity file /home/michel/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/michel/.ssh/id_xmss type -1
debug1: identity file /home/michel/.ssh/id_xmss-cert type -1
debug1: identity file /home/michel/.ssh/id_dsa type -1
debug1: identity file /home/michel/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u5
debug1: Remote protocol version 2.0, remote software version OpenSSH_10.0p2
Debian-2dirname1
debug1: compat_banner: match: OpenSSH_10.0p2 Debian-2dirname1 pat OpenSSH*
compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to fe80::a974:6230:38a9:f5b5%enp1s0:22 as 'test'
debug3: record_hostkey: found key type ED25519 in file
/home/michel/.ssh/known_hosts:5
debug3: record_hostkey: found key type RSA in file
/home/michel/.ssh/known_hosts:6
debug3: record_hostkey: found key type ECDSA in file
/home/michel/.ssh/known_hosts:7
debug3: load_hostkeys_file: loaded 3 keys from fe80::a974:6230:38a9:f5b5%enp1s0
debug1: load_hostkeys: fopen /home/michel/.ssh/known_hosts2: No such file or
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or
directory
debug3: order_hostkeyalgs: have matching best-preference key type
ssh-ed25519-cert-...@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms:
sntrup761x25519-sha512,sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-...@openssh.com
debug2: host key algorithms:
ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-cert-...@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos:
chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
debug2: ciphers stoc:
chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
debug2: MACs ctos:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,z...@openssh.com,zlib
debug2: compression stoc: none,z...@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms:
mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,ext-info-s,kex-strict-s-...@openssh.com
debug2: host key algorithms:
rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos:
chacha20-poly1...@openssh.com,aes128-...@openssh.com,aes256-...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: ciphers stoc:
chacha20-poly1...@openssh.com,aes128-...@openssh.com,aes256-...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: MACs ctos:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc:
umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,z...@openssh.com
debug2: compression stoc: none,z...@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: sntrup761x25519-sha512
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1...@openssh.com MAC:
<implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1...@openssh.com MAC:
<implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519
SHA256:VxuoELDmQ0GaiEPmkrmSCSrL2i0TyvLn1e1ndh6yOVs
debug3: record_hostkey: found key type ED25519 in file
/home/michel/.ssh/known_hosts:5
debug3: record_hostkey: found key type RSA in file
/home/michel/.ssh/known_hosts:6
debug3: record_hostkey: found key type ECDSA in file
/home/michel/.ssh/known_hosts:7
debug3: load_hostkeys_file: loaded 3 keys from fe80::a974:6230:38a9:f5b5%enp1s0
debug1: load_hostkeys: fopen /home/michel/.ssh/known_hosts2: No such file or
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or
directory
debug1: Host 'fe80::a974:6230:38a9:f5b5%enp1s0' is known and matches the
ED25519 host key.
debug1: Found key in /home/michel/.ssh/known_hosts:5
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/michel/.ssh/id_rsa
debug1: Will attempt key: /home/michel/.ssh/id_ecdsa
debug1: Will attempt key: /home/michel/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/michel/.ssh/id_ed25519
debug1: Will attempt key: /home/michel/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/michel/.ssh/id_xmss
debug1: Will attempt key: /home/michel/.ssh/id_dsa
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info:
server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256>
debug1: kex_input_ext_info: publickey-hostbo...@openssh.com=<0>
debug1: kex_input_ext_info: p...@openssh.com (unrecognised)
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/michel/.ssh/id_rsa
debug3: no such identity: /home/michel/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_ecdsa
debug3: no such identity: /home/michel/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_ecdsa_sk
debug3: no such identity: /home/michel/.ssh/id_ecdsa_sk: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_ed25519
debug3: no such identity: /home/michel/.ssh/id_ed25519: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_ed25519_sk
debug3: no such identity: /home/michel/.ssh/id_ed25519_sk: No such file or
directory
debug1: Trying private key: /home/michel/.ssh/id_xmss
debug3: no such identity: /home/michel/.ssh/id_xmss: No such file or directory
debug1: Trying private key: /home/michel/.ssh/id_dsa
debug3: no such identity: /home/michel/.ssh/id_dsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
test@fe80::a974:6230:38a9:f5b5%enp1s0's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
Connection closed by fe80::a974:6230:38a9:f5b5%enp1s0 port 22