Control: tag -1 + patch Hi,
* Lee Garrett <[email protected]> [2025-05-29 12:40]:
when `autopkgtest --shell [...]` is run, it will output this: autopkgtest [11:21:32]: - - - - - - - - - - running shell - - - - - - - - - - You can now log into the VM through the serial terminal. Depending on which terminal program you have installed, you can use one of ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 user@localhost minicom -D unix#/tmp/autopkgtest-qemu.09ym6cj2/ttyS0 nc -U /tmp/autopkgtest-qemu.09ym6cj2/ttyS0 socat - UNIX-CONNECT:/tmp/autopkgtest-qemu.09ym6cj2/ttyS0 The tested source package is in /tmp/autopkgtest.DxD6tg/build.WJ0/real-tree ----------------------------------------------------------------------- So to keep compatibility with autopkgtest, I recommend to also add the sshkey to /home/user/.ssh/authorized_keys.
Agreed, patch attached. Cheers Jochen
From 087e52d5110b0735e9b65fd267aaf5ac9b49cbb9 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof <[email protected]> Date: Sat, 17 Jan 2026 10:02:26 +0100 Subject: [PATCH] m-a-b-q: add sshkey to user Closes: #1106755 --- mmdebstrap-autopkgtest-build-qemu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mmdebstrap-autopkgtest-build-qemu b/mmdebstrap-autopkgtest-build-qemu index bb7bce0..7726a7d 100755 --- a/mmdebstrap-autopkgtest-build-qemu +++ b/mmdebstrap-autopkgtest-build-qemu @@ -379,7 +379,10 @@ if test -n "$SSHKEY"; then set -- "$@" \ --include=openssh-server \ '--customize-hook=mkdir -m700 -p "$1/root/.ssh"' \ - "--customize-hook=upload $SSHKEY /root/.ssh/authorized_keys" + "--customize-hook=upload $SSHKEY /root/.ssh/authorized_keys" \ + '--customize-hook=mkdir -m700 -p "$1/home/user/.ssh"' \ + "--customize-hook=upload $SSHKEY /home/user/.ssh/authorized_keys" \ + "--chrooted-customize-hook=chown -R user:user /home/user/.ssh" fi set -- "$@" \ -- 2.51.0
signature.asc
Description: PGP signature

