Lubuntu ssh: Read from socket failed – solved

SSH to my fresh lubuntu on cubieboard2 was not working. I tried it also from the lubuntu itself with the error:

$ ssh localhost
Read from socket failed: Connection reset by peer

I went through many google search results. But I could not find any appropriate solution. Finally did what I should as the first step. Uninstall and install the ssh.

This page helped me to try uninstall with complete removal (also the configuration files). It should work with the command

apt-get --purge remove <package>

I did it from Synaptic Package Manager by “Mark for Complete Removal” selection (or shift-delete). I applied the changes.

As you can see the ssh config files directory was removed as well. After the

sudo apt-get install ssh

the files were recreated.

SSH is finally working on my fresh lubuntu.


Related Posts

Ubuntu – data stored in RAM filesystem – TMPFS

In my Cubieboard2 I use Lubuntu. Since I have connected barometer and arduino to my cubieboard, I read data from that devices and store it to cubieboard2 filesystem. Since NAND memory is not quite suitable for such[…]

Continue reading ...

Turn blue/green led off on cubieboard

If you have your cubieboard stable and do not like the led to blink, you can turn it off.

Continue reading ...

Cubieboard and 2.00mm vs 2.54mm pins

Cubieboard has thickness 2.00mm 2×20-pin-header that is not so suitable for home hobbiest. Arduino and other small boards uses 2.54mm pin (0.100inch) To connect it I have bought 2.00mm to 2.54mm 40pcs Wire Cable 2P[…]

Continue reading ...