I'm using debian tested images on Raspberry Pi 4.
After installing ssh service with apt-get install ssh
, i'm fancing the following issue: the service failed to start on boot only:
-- Boot 081a2e48bcac4a4eb71bac1995c5bc83 --
nov. 18 17:50:08 rpi4-20210823 systemd[1]: Starting OpenBSD Secure Shell server...
nov. 18 17:50:08 rpi4-20210823 sshd[618]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
nov. 18 17:50:08 rpi4-20210823 sshd[618]: error: Bind to port 22 on :: failed: Address already in use.
nov. 18 17:50:08 rpi4-20210823 sshd[618]: fatal: Cannot bind any address.
nov. 18 17:50:08 rpi4-20210823 systemd[1]: ssh.service: Main process exited, code=exited, status=255/EXCEPTION
nov. 18 17:50:08 rpi4-20210823 systemd[1]: ssh.service: Failed with result 'exit-code'.
nov. 18 17:50:08 rpi4-20210823 systemd[1]: Failed to start OpenBSD Secure Shell server.
But after boot, if I start it by systemctl start ssh
, it works!
nov. 18 17:50:55 rpi4-20210823 systemd[1]: Starting OpenBSD Secure Shell server...
nov. 18 17:50:55 rpi4-20210823 sshd[910]: Server listening on 0.0.0.0 port 22.
Of course, I don't have any other service that bind to port 22, so I don't understand what it preventing ssh to start on boot (and as you can imagine this is quite annoying).
Of course, I don't have any other service that bind to port 22
- the error would suggest otherwise, at least at 17:50:08 something did have port 22 open - If you're using the debian tested images to run 64bit OS on pi, use the raspberry pi images instead (you'll find them at downloads.raspberrypi.org ) the 64bit Ras Pi OS uses debian.org apt sources for the most part - and I can attest to it working on 2 x pi4, a cm4 and a pi3A+