I’ve been successfully using an ssh server for development and debugging inside a container based on the image torizon/debian:2-bullseye. I can install the package and start it like this:
apt-get update
apt-get upgrade
apt-get install openssh-server
service ssh start
I figured that I really should use the newer version of the container torizon/debian:3-bullseye but the commands listed above no longer work in that version.
In bookworm apt-get update fails with messages about missing signatures:
Get:4 https://feeds.toradex.com/debian/snapshots/20240116T145428Z testing InRelease [15.1 kB]
Err:1 http://deb.debian.org/debian bookworm InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY F8D2585B8783D481
If I try apt-get install openssh-server with bookworm then I get this message:
Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openssh-server' has no installation candidate
Has the package openssh-server been deprecated in bookworm?