I have a Raspberry Pi 4 where I installed Raspbian headlessly and had an apache web server and a mail server running - at some point the servers crashed and after not being able to fix it for some time, the SSH pipe also broke. I have hard-rebooted the Raspberry-Pi (pulled the plug).

I played around a bit with ufw before being not able to log in, but the errors did not start immediately (i.e. 2h later) so I hope that I did not mess up anything there.

Since then, I can not log-in to the Raspberry-Pi via SSH (connect to host port 22: Operation timed out.

I have confirmed with my router that my Raspberry Pi has the fixed IP address in my local network, and I can ping and nmap it.

nmap -Pn
> Nmap scan report for
> Host is up (0.0046s latency).
> Not shown: 996 filtered tcp ports (no-response)
> 25/tcp  open  smtp
> 143/tcp open  imap
> 465/tcp open  smtps
> 587/tcp open  submission

I tried to follow the advice from the documentation, shut down the raspberry pi again, ejected the SSD card, mounted it on my computer and navigated to the boot volume:

cd /Volumes/boot
touch ssh

to enable SSH again, but it is the same issue that ssh user@ times out for any user.

At this point, do I have any other option than to wipe the SSD and start all over again?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.