SFTP: Invalid passphrase for key file when using ED25519 keys
Check for existing issues
- [x] Completed
Describe the bug / provide steps to reproduce it
Use a ED25519 ssh key to connect without passphrase, built-in SFTP client displays the error mentioning "Invalid passphrase for key file".
Even with a ED25519 key with passphrase, entering the correct passphrase results in the same error message displayed.
(Just using an RSA key currently)
Environment
Acode version: 1.11.1 (957) (f-droid) Android version: 14 Webview: 135.0.7049.100 (com.google.android.webview)
If applicable, add mockups / screenshots regarding your vision
No response
If applicable, attach your Acode.log file to this issue.
No response
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment(i.e Bump!) or this will be closed in 14 days.
don't close
I have the same error message
Does anyone know how to connect ssh using keys? It worked ssh over password but not working with keys. I have tried pasting the private key in the 'Keyfile' field and giving the path to the key but not working.
Thanks!
Hey @ragavpr,
I’ve emulated your SSH server environment using a container and tested connecting with a key file, everything works. I also tried both with and without a passphrase, and didn’t encounter any issues.
Could you please provide more details or specific steps to reproduce the problem? Alternatively, you might want to double-check your configuration settings (such as port, host, etc.) to ensure everything is correct.
Confirmed, in my case the ED25519 keys don't work either with or without a passphrase (even without a passphrase defined I get the error Invalid passphrase for key file). I've tried with the old RSA keys in PEM format and even these only work without a passphrase, so I've had to limit access to SFTP only to minimize the risks. I'm using version 11.11.6 (965).
@bajrangCoder I confirm the issue (tested on 1.11.6 - 965 Play store build).
Attached the logcat emitted by acode to the system.
In-short system err reports: Ed25519 KeyFactory not available
https://bashupload.com/ke04L/68ca44542d4ab
Yesterday, I tried Acode's setup with a plain Java program on Java 21, there ed25519 keys worked fine. Today I'll try with a blank Cordova app or maybe Running a Debugger on Acode.
@ragavpr , @LouisRed
Fixed It. Now it's working fine with ED25519 KEYS, normally like with RSA 4096 KEYS.
I'll send a build here for you to test them.
Kindly download it from the link below for testing:
https://limewire.com/d/cVMDs#V3rHLywn8f
Kindly download it from the link below for testing:
https://limewire.com/d/cVMDs#V3rHLywn8f
It stays loading... Thanks for the try.
Kindly download it from the link below for testing:
https://limewire.com/d/cVMDs#V3rHLywn8f
It stays loading... Thanks for the try.
@LouisRed, Weird. The loading should go away and connect or drop the connection (if failed) after a few mins.
If you're able to access the data directory in Android Folder. Locate com.foxdebug.acode, open it & give me the synergy.log file.
Thanks for the try.
😢 Won't leave the issue as-is after spending like three days debugging (today would be fourth incase).
Kindly download it from the link below for testing:
https://limewire.com/d/cVMDs#V3rHLywn8f
Seems to work on my machine(tm), thanks for taking the time to look into this!
ok