Can't SSH to beaglebone black (port 22: Connection refused)

Hello everyone,

I’m trying to create beaglebone black sd-card image based on RobertCNelson’s eewiki website. I followed the steps based on the newest version of the eewiki website. But after I boot BBB, I can’t SSH to it. It keeps showing the following message:

ssh: connect to host port 22: Connection refused

The image I built last month works well and I can SSH to it. I don’t know what is changed on eewiki’s website, but now, it seems SSH doesn’t work. Even I follow the old version of eewiki’s website, the SSH doesn’t work anymore.

Does anyone know how to fix this issue? Thanks!


It's possible the ssh key's haven't been generated:

sudo dpkg-reconfigure openssh-server


On the BBB.


Thanks! But should I do this on a host or on BBB?


Thanks! The thing is, if I can’t ssh to BBB, I can’t do sudo dpkg-reconfigure openssh-server. Is there some other way to fix this? By modifying the sd-card image?

Plug in a usb-serial adapter..

the ssh key's should have been auto-generated on first bootup...


Yeah, it’s quite strange. I built so many sd-card image with different version of u-boot, kernel and rootfs. Even with different routers. However, all of them shows connection refused message.Thanks anyway,

Here's the startup script that should be called: