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

Cubieboard2 – Lubundu – Extending NAND from 2GB to 4GB

When I install new Lubuntu NAND image to my new Cubieboard2 I had only 2GB of space out of 4GB available. I followed this forum to expand the filesystem to 4GB. sudo nand-part In my[…]

Continue reading ...

Upgrade Ubuntu 12.10 (Linaro 13.04) to Ubuntu 13.10 (Linaro 14.01) and later to Ubuntu 14.04 LTS

I wanted to keep my existing configuration and programs on my Cubieboard2 with Linaro Lubuntu, but at the same I wanted to upgrade the packages since the Lubuntu 12.10 is quite outdated. This post describes[…]

Continue reading ...

I2C on Cubieboard with Lubuntu

I2C bus is used by many integrated circuits and is simple to implement. Any microcontroller can communicate with I2C devices even if it has no special I2C interface so I wanted to enable I2C also[…]

Continue reading ...