0

I have a Raspberry Pi 4 4gb ram and I installed Raspberry OS lite 64-bit on it. I then sshed into it and realized I didn't know the password that was set(I believe I know what it was now). I then reformatted and reimaged the sd card. I cannot SSH into it anymore using Putty, it gives me an error: "Network error: Software caused connection abort." I have tried many things except editing the files of my Raspberry Pi. I also pinged the IP and it was successful. SSH was enabled in the setup as well. I even restarted the device.

1
  • If UFW was enabled, make sure you allow SSH.
    – jhogarth
    Commented Aug 8 at 16:26

1 Answer 1

1

For me, it looks like a configuration issue. You could try :

systemctl status ssh

To ensure that your ssh service is active, running and if it is enabled. If it's not then when you restart your device it will be disabled. To enable it :

systemctl enable ssh

You should also check if ssh connection is authorized by checking your interfaces options:

sudo raspi-config

Finally, if it still not working, your issue could come from your sshd config, please double check your /etc/ssh/sshd_config file and make sure everything is good.

1
  • all of this was not possible due to the fact that I was unable to access the raspberry pi. The only thing that worked was buying a mini hdmi cable and simply plugging it in. That somehow fixed the issue. If I booted the raspberry pi with the hdmi cable plugged in then ssh would be activated, without it no ssh. Commented Aug 22 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.