keepass2android icon indicating copy to clipboard operation
keepass2android copied to clipboard

"Auth failed" after typing the database password at password prompt / remote connection with SSH

Open junglized opened this issue 4 years ago • 3 comments

Hi all,

I stumpled upon a little problem. I can connect to database with SSH but I get "Auth Failed" error after typing database password. SSH connection credentials are correct, I pasted previously copied private key into authorized_keys file on the remote server. There was one key added already to the file, so I added the one copied from KeePass in the new line so it looks like this:

ssh-rsa alreadyExistingKey
ssh-rsa keePassKey

but still, I can get database's password prompt, so I connect to the file, but then, after typing in the password, the error pops out.

Can I have some help, please? Thank you :)

junglized avatar Feb 21 '21 11:02 junglized

seeing the password prompt does not mean you are connected or anything. it just says you have entered a filename. I suggest you try to only enter the folder name and see if you can browse the folder.

When did you copy that private key? Was it on another device/previous install or just recently?

PhilippC avatar Feb 22 '21 08:02 PhilippC

Just had this fail. This was after upgrade to ubuntu 22.04 for the server. every other android and win and linux app works. There needs to be a way to open the settings nor the sftp/ssh setup.

pcause avatar Apr 07 '22 17:04 pcause

I had the exact same issue after updating to Ubuntu 22.04. The reason being, that Ubuntu doesn't trust the RSA SHA-1 algorithm anymore, which is deemed insecure, but is sadly still used by KeePass2Android.

For a quick workaround you can add PubkeyAcceptedKeyTypes +ssh-rsa to your sshd_config and restart the service. For me, this workaround fixed the issue.

We can all hope, that the developer will soon add the option to add your own private ssh key.

MOHMOBILE avatar Aug 31 '22 14:08 MOHMOBILE

I have the same issue however the suggested workaround did not work for me. I just realized that my db hasn't been syncing for quite a while now.

Is there anything else I can do to fix this? I can access the location with sshfs from other clients but keepass2androind can't get at the file anymore.

ioogithub avatar Oct 28 '22 21:10 ioogithub