-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Area-Ssh/Scp/SftpFrom-telegramIssue reported through telegram channelIssue reported through telegram channelIssue-BugRelated unexpected behavior or something worth investigating.Related unexpected behavior or something worth investigating.
Description
To Reproduce
Steps to reproduce the behavior:
- Generate a key pair in Juice SSH, using ED25519 as key type, and enter a passphrase
- Export the key pair
- Copy the public key to target SSH server
- Create a new SSH connection in Amaze, using the private key exported in 2
- Enter passphrase in 1 when prompted
- Amaze complained incorrect passphrase even when correctly entered
Expected behavior
The key should decrypt, hence create the SSH connection without problem
Smartphone (please complete the following information):
- Device: Pixel 2 emulator
- OS: Android 11
- Rooted: yes, but should not matter
- Version: 3.6.5
Additional context
The key pair generated above can be used in Solid Explorer without problems.
And when the key went through PemToKeyPairTask
, such exception was seen
java.lang.IllegalStateException: Cipher 'aes128-cbc' not currently implemented for openssh-key-v1 format
at com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile.createCipher(OpenSSHKeyV1KeyFile.java:145)
at com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile.decryptBuffer(OpenSSHKeyV1KeyFile.java:117)
at com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile.readDecodedKeyPair(OpenSSHKeyV1KeyFile.java:110)
at com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile.readKeyPair(OpenSSHKeyV1KeyFile.java:79)
at net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider.getPublic(BaseFileKeyProvider.java:81)
at com.amaze.filemanager.asynchronous.asynctasks.ssh.PemToKeyPairTask$OpenSshV1PemToKeyPairConverter.throwingConvert(PemToKeyPairTask.kt:221)
which looks quite true.
Not sure if we should override it and add the cipher back though (if this is really the culprit).
borisrunakov
Metadata
Metadata
Assignees
Labels
Area-Ssh/Scp/SftpFrom-telegramIssue reported through telegram channelIssue reported through telegram channelIssue-BugRelated unexpected behavior or something worth investigating.Related unexpected behavior or something worth investigating.