question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Private key authentication fails after update [F-Droid]

See original GitHub issue

Bug 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:open
  • Created 2 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
krutoncommented, Nov 1, 2021

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.

0reactions
normanrcommented, Jun 18, 2022

ahh, the old connection seems to be sending a server_host_key_algorithms of ssh-rsa in the Client Key Exchange Init step. sshd logs an error of Unable to negotiate with $remote: no matching host key type found. Their offer: ssh-rsa [preauth]. The newer connection offers only ssh-ed25519 at the same point.

ahh, this is already reported at the bottom of #747, sorry for the noise

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found