Ssh disconnection problem

Basic Information:

Printer Model: Ender 3 v3 se
MCU / Printerboard: stock motherboard
Host / SBC: raspberry pi 2 B
klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

I’m trying to reinstall Klipper on my printer and while trying to ssh into the raspberry to install kiauh the connection disconnects after some time, around 15 seconds. Trying to reconnect after that fails. The only way i can reconnect is by restarting the pi, resulting in the same disconnect after ~15 seconds. Could it be wrong settings on raspberry pi imager?

Hello @sdaaasds !

When you connect via WiFi, you may check the router settings.
LAN connection is always recommended.

I use a lan connection, I connected my pi with a lan cable directly to my computer

Can you connect a monitor to it and do a restart? That way you can see what is happening before and during the shutdown. Also if you have a spare keyboard you could then querie the pi and check the logs for errors or check if the ssh is up and running.I always find that asking any AI for specific assistance in these cases really help, but always double check their code!