Closed peterwillcn closed 8 months ago
assign a password for the root on the target board (this may require you to enable the passwd in busybox by make busybox-menuconfig in buildroot)"
Oh!! there's a whole new menu!!
For those who are following this trail, here is what I did to get dropbear working:
1, build dropbear and add it to your image/distribution
2, run "make busybox-menuconfig" and ensure that passwd is added to your image/distribution
3, build and reboot your board (making sure it picks up the new image).
4, set a root password
5, Run the following to generate your keys
dropbearkey -t ed25519 -f /etc/dropbear/dropbear_ed25519_host_key
dropbearkey -y -f /etc/dropbear/dropbear_ed25519_host_key | grep "^ssh-ed25519 " >> /etc/dropbear/authorized_keys
6, Start dropbear on port 22
/usr/sbin/dropbear -r /etc/dropbear/dropbear_ed25519_host_key -p 22
7, Connect using ssh
ssh root@IP-address -p 22
assign a password for the root on the target board (this may require you to enable the passwd in busybox by make busybox-menuconfig in buildroot)"
Oh!! there's a whole new menu!!
For those who are following this trail, here is what I did to get dropbear working:
1, build dropbear and add it to your image/distribution
2, run "make busybox-menuconfig" and ensure that passwd is added to your image/distribution
3, build and reboot your board (making sure it picks up the new image).
4, set a root password
5, Run the following to generate your keys
dropbearkey -t ed25519 -f /etc/dropbear/dropbear_ed25519_host_key dropbearkey -y -f /etc/dropbear/dropbear_ed25519_host_key | grep "^ssh-ed25519 " >> /etc/dropbear/authorized_keys
6, Start dropbear on port 22
/usr/sbin/dropbear -r /etc/dropbear/dropbear_ed25519_host_key -p 22
7, Connect using ssh
ssh root@IP-address -p 22
Hello, I don’t quite understand your question. Are you using the latest SDK? SSH is enabled by default in the latest SDK, and you can log in normally.
Solution provided in https://github.com/LuckfoxTECH/luckfox-pico/issues/21#issuecomment-1816450974
issues: cannot use local user login in;
debug1: Authentications that can continue: publickey,password debug1: No more authentication methods to try.
ref: https://gist.github.com/da-n/f906ca5a7e2a9c5fa7e29883b80a3be9