RoboTrader
Posts: 18
Joined: Mon Nov 13, 2017 1:53 pm

ssh: write: Software caused connection abort (only sometimes!)

Sun Nov 26, 2017 10:40 am

First, I want to thank you for the idea of the Pi. It's great and I use it every day!
I use it headless and have no problem with ssh from my MacBook.

But today ...

When I try "ssh pi@192.168.0.172" or per ethernet-cable with "ssh pi@raspberrypi.local" there is shown:

Code: Select all

write: Software caused connection abort
But not everytime. Sometimes it works after trying 4-5 times. But after using it some minutes the connection breaks at it says:

Code: Select all

packet_write_poll: Connection to 192.168.0.172 port 22: Software caused connection abort
Until today I had no problems with the connection.

In the morning I took my sd card to my macbook and with "sudo dd if=/dev/disk2 | gzip > rpi-sd-20171126.gz" I made a backup. Before I tried "speaking" with

Code: Select all

sudo apt-get install espeak
sudo apt-get install alsa-tools alsa-utils
alsactl init
and I insert my Bluetooth-Box but only with cable.

What does the error mean?
How can I solve it?
Do I have to rebuild my system?
Did I made the backup the wrong way?
Where do I maybe find a log file with some more information about the error?

Thanks for your help!

P.S. With "ping" there is a connection to the IP address. And sometimes it works by IP or local.

P.P.S. After trying "espeak" I wanted to get my IP Adress spoken with Python:

Code: Select all

import socket
host_name = socket.gethostname()
host_ip = socket.gethostbyname(host_name)
P.P.P.S. Another time after "ssh pi@192.168.0.172" it said:

Code: Select all

ssh_exchange_identification: read: Connection reset by peer

Return to “Troubleshooting”