Asked 1 year ago
Active 9 months ago
Viewed 2k times
I have 2 VPS in DigitalOcean. I was able to SSH into them with password before today. But now, when I try to SSH with my machine which is Kali Linux, after type the password, I get this response:
packet_write_wait: Connection to X.X.X.X port 22: Broken pipe
I tried to add SSH key of my machine (I am not sure did it right) but no success. I know the problem is in Kali because I can SSH into with my other machine which is Windows.
What can be the problem?
35.1k1010 gold badges112112 silver badges152152 bronze badges
asked Sep 6 '18 at 13:14
1433 bronze badges
I'm having the same problem when trying to push code to Gitlab over SSH. It only started happening a couple of days ago. I fixed it by using Git over HTTPS, but I don't know what the cause of the problem is. Hopefully, someone will be able to figure it out. For the record, I'm using Manjaro Linux with all the latest updates installed. – Cromulent Sep 6 '18 at 13:30
I suspected from some configuration or environment variables on my machine after checking ssh logs. The connection is actually opening but closed immediately after. So I thought give it a change to connect using something differentthan regular terminal. I tried yakuake but no succes. Then I tried Putty and that worked. However I have still no idea of the main cause of the problem – Eren Koçak Sep 7 '18 at 20:26
I had the exact same problem in Kali and Parrot distros and have been looking for a solution for quit some time.
I was able to fix it by adding this to my ssh_config or ~/.ssh/config file:
I hope this helps for you also...
'LINUX' 카테고리의 다른 글
|vi 사용법에서 찾은 문자열 이외의 것을 삭제하는 방법 (0)||2020.12.22|
|RHEL에서 netstat 프로세스의 PID / Program Name을 표시하지 않는 이유는 무엇인가요? (0)||2020.12.22|
|packet_write_wait: Connection to X.X.X.X port 22: Broken pipe (0)||2019.09.09|
|How To Run A Command For A Specific Time In Linux (0)||2019.03.04|
|How to get high precision nano second delay in linux III (0)||2019.03.04|
|How to get high precision nano second delay in linux II (0)||2019.03.04|