Today I connected to sftp and it worked, but a few minutes later I got disconnected and couldn’t connect again. Restarting sshd did nothing, so I rebooted the server and sftp started working again for just a few minutes.
Here’s the last part of the log when I try to connect:
debug1: Authentication succeeded (publickey). Authenticated to ns1 ([xx.xx.xx.xx]:22). debug2: fd 4 setting O_NONBLOCK debug1: channel 0: new [client-session] debug2: channel 0: send open debug1: Requesting email@example.com debug1: Entering interactive session. debug1: pledge: network debug1: client_input_global_request: rtype firstname.lastname@example.org want_reply 0 debug1: Remote: /root/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding debug1: Remote: /root/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding debug2: channel_input_open_confirmation: channel 0: callback start debug2: fd 3 setting TCP_NODELAY debug2: client_session2_setup: id 0 debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug2: channel 0: request env confirm 0 debug1: Sending subsystem: sftp debug2: channel 0: request subsystem confirm 1 debug2: channel_input_open_confirmation: channel 0: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe
I’m using openssh on Debian 10.9, everything is updated.