Private key authentication fails after update [F-Droid]
See original GitHub issueBug description
After upgrading from 1.9.6-oss
to 1.9.8-oss
on Android 11, I could no longer connect to the ssh server running on localhost. It would report some issue authenticating with my private key and instead prompt for ssh password auth (which I don’t have setup). When going into the key management menu of connectbot and tapping on the sole key that I have, it would report Wrong Password (so this is for the key, not for ssh auth). I don’t recall setting a password and I definitely never needed to enter a password to use this private key.
Server information
- OS: using the app Linux Deploy, it’s a mostly Debian 11 system
- SSH software:
openssh-server
1:8.4p1-5
armhf
from the repositories - Pubkeys used: ed25519
Workaround
I could resolve the problem by downgrading, using termux:
$ wget https://f-droid.org/repo/org.connectbot_10906000.apk
$ cmd package install -d org.connectbot_10906000.apk
Where the -d
flag allows downgrading.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Using ADAL to authenticate from Android devices fails if ...
Describes an issue in which ADAL authentication from Android devices fails if additional certificate downloads are required.
Read more >Authentication error trying to use RSA private key on Xamarin ...
I'm using Xamarin Forms to create an app to sign data. To access the private key the user must authenticate, since i put...
Read more >Android Keystore system - Android Developers
Use the Android Keystore provider · Generate a new private or secret key · Import encrypted keys into secure hardware · Work with...
Read more >ConnectPro 4.5.009 Cannot connect to SSH host with private ...
However, on Connect Pro 4.5.009, it succeeds with password authentication but fails with private key authentication.
Read more >Use a security key for 2-Step Verification - Google Account Help
Make sure you're using the latest version of your browser or OS. New registered keys no longer work on Android devices 8.0 and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It might be an encoding problem. I switched libraries for Ed25519 between 1.9.6 and 1.9.8, so the reading of old keys might be affected. I’ll check this out.
ahh, the old connection seems to be sending a
server_host_key_algorithms
ofssh-rsa
in the Client Key Exchange Init step.sshd
logs an error ofUnable to negotiate with $remote: no matching host key type found. Their offer: ssh-rsa [preauth]
. The newer connection offers onlyssh-ed25519
at the same point.ahh, this is already reported at the bottom of #747, sorry for the noise