This question already has an answer here:

I am running Ubuntu 18.04.

Today i started the server i was working on and after logging in with ssh it kicked me out of server and after that when i tried to log back into the server I get connection refused error.

error: packet_write_wait: Connection to port 22: Broken pipe

i have tried re-configuring the .sshd_config file,nothing worked yet.

marked as duplicate by Mr Shunz, Christopher, Rui F Ribeiro, X Tian, Thomas Jan 16 at 18:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Local server on the same machine or remote one?, if remote, make sure you have stable connection. – Tuyen Pham Jan 15 at 7:43
  • 1
    You probably mean ~/.ssh/config. In any case, .sshd_config is certainly not standard, so you should clarify what exactly you mean. – cryptarch Jan 15 at 7:44

Browse other questions tagged or ask your own question.