Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't import JuiceSSH ED25519 private keys #9

Open
tf2k opened this issue Dec 10, 2022 · 2 comments
Open

can't import JuiceSSH ED25519 private keys #9

tf2k opened this issue Dec 10, 2022 · 2 comments

Comments

@tf2k
Copy link

tf2k commented Dec 10, 2022

I've been asked to troubleshoot an issue where an SSH key generated on an Android Smartphone with JuiceSSH fails to import / fails to get decoded and the widget returns: "wrong passphrase", after entering the correct passphrase.

The key can be used on a Linux Client without any isues, and it works if the passphrase on the key gets changed on Linux.

Steps to reproduce:
Install Juice SSH 3.2.2 on the Smartphone
create new identity, ED25519 Key type, set a passphrase and export the key to the clipboard

open the Stratum0 Widget (version 8.0.0-play)

  • go to Settings
  • enter the nickname
  • press the "refresh" symbol
  • the SSH key gets imported from the clipboard automatically
  • the Widget asks for the SSH passphrase, enter it
  • app states "wrong password"

are we hitting a bug in the sshj Library?:
hierynomus/sshj#770

@Valodim
Copy link
Owner

Valodim commented Dec 10, 2022

Thanks for your report. I'd rather not install an app to reproduce, can you please attach a key that exhibits this behavior?

@tf2k
Copy link
Author

tf2k commented Dec 10, 2022

sure!

passphrase: mypassphrase
juice_ssh_private_key.txt
juice_ssh_public_key.txt

ssh-keygen -l -f juice_ssh_private_key.txt
256 SHA256:+D8ZkAMbhZVbNZh0eGXD5WaSob+CisaSTtNgaOO6QhU no comment (ED25519)

I am just the messenger, i've heard that the person with the originating issue has already got in touch with you.
(oh dear, and i see that JuiceSSH is killing the nice formatting of the key with respect to the line lenghts ...) nothing compares against a ssh-keygen on a pc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants