I checked, I have a
- 256 bit RSA key, SHA256
- 256 bit ECDSA key, SHA256
- 2048 bit ED25519 key, SHA256
and all three work when using SSH into a box without password ( when the .pub is added to the authorized_keys file ).
I would recommend not to open up the SSH port on the BOX to the whole world, but hide it behind VPN (have a VPN running on the router itself).
WireGuard is generally recommended and all MikroTik devices support it and are cheap and available in all sizes and price range.
See an article over here as well
https://www.world-of...ll=1#post447298
I have been using RSA and ECDSA keys, but recently changed to ED25519 on my PC,
but have been unable to log in without a password (with key only) on my box running OpenPLi 8.3-release (2023-06-25-release-8.3) as well ...
Could be that the version of the DropBear is bit out of date:
root@vuduo4kse:~# dropbear -v
Invalid option -v
Dropbear server v2019.78 https://matt.ucc.asn.au/dropbear/dropbear.html
Usage: dropbear [options]
-b bannerfile Display the contents of bannerfile before user login
(default: none)
-r keyfile Specify hostkeys (repeatable)
defaults:
dss /etc/dropbear/dropbear_dss_host_key
rsa /etc/dropbear/dropbear_rsa_host_key
ecdsa /etc/dropbear/dropbear_ecdsa_host_key
-R Create hostkeys as required
-F Don't fork into background
-E Log to stderr rather than syslog
-w Disallow root logins
-G Restrict logins to members of specified group
-s Disable password logins
-g Disable password logins for root
-B Allow blank password logins
-T Maximum authentication tries (default 10)
-j Disable local port forwarding
-k Disable remote port forwarding
-a Allow connections to forwarded ports from any host
-c command Force executed command
-p [address:]port
Listen on specified tcp port (and optionally address),
up to 10 can be specified
(default port is 22 if none specified)
-P PidFile Create pid file PidFile
(default /var/run/dropbear.pid)
-i Start for inetd
-W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
-K <keepalive> (0 is never, default 0, in seconds)
-I <idle_timeout> (0 is never, default 0, in seconds)
-V Version
https://matt.ucc.asn.au/dropbear/dropbear.html
Download
Latest is 2022.83
14 November 2022
dropbear‑2022.83.tar.bz2