SSH: "Server unexpectedly closed network connection"

When trying to connect to the Bone via PuTTY/SSH, I get “Server unexpectedly closed network connection”.

I can connect as follows:

PuTTY/serial via USB.

Browser via Ethernet.

I checked the Ethernet settings:

root@beaglebone:/var/lib/connman/ethernet_9059af5def8c_cable# cat settings

[ethernet_9059af5def8c_cable]

Name=Wired

AutoConnect=true

Modified=2000-01-01T00:00:11.443220Z

IPv4.method=manual

IPv6.method=auto

IPv6.privacy=disabled

Nameservers=213.46.228.196;62.179.104.196;

IPv4.netmask_prefixlen=24

IPv4.local_address=192.168.0.131

IPv4.gateway=192.168.0.1

I tried DCHP as well, to no avail.

This is my version:

root@beaglebone:~# uname -a

Linux beaglebone 3.8.13 #1 SMP Wed Jun 5 11:21:00 CEST 2013 armv7l GNU/Linux

Any help appreciated.

Check to see if the ssh key in /etc/dropbear is an empty file. If so, remove it and start drop bear… It’ll generate a valid key.

Thanks Stephen,

This works like a charm, very grateful for you quick fix.

Peter

Hi Stephen,

I am too facing the same issue when connect to beaglebone using putty. I tried the the solution you mentioned but it is not working for me. Either the file is not getting deleted or there is some other issue. I am using Cloud9 IDE to delete file. Is there any other way to do so?
Any help will really be appreciated. I am newbie to beaglebone.

Thanks,
Sanjay Ahuja

Sanjay, try the method outlined in this video

https://www.youtube.com/watch?v=kb0h-GOsZIw

Akshay