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.
packet_write_wait: Connection to 192.168.30.59 port 22: Broken pipe
i have tried re-configuring the .sshd_config file,nothing worked yet.