Skip to content

SFTP with keyfile doesn't work anymore with 1.11.1 #1248

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

Open
1 task done
Kahz3l opened this issue Apr 9, 2025 · 5 comments
Open
1 task done

SFTP with keyfile doesn't work anymore with 1.11.1 #1248

Kahz3l opened this issue Apr 9, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@Kahz3l
Copy link

Kahz3l commented Apr 9, 2025

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Click Files > Add SFTP > Add details:

Image

Then the error occurs:

Image

Could not read key file: Unable to create
OpenSSL PBDKF: no such algorithm:
PBKDF-OpenSSL for provider BC

Downgrading from Github to 1.11.0 fixes the bug.

Environment

Device Information:
WebView Info:
Package Name: com.google.android.webview
Version: 134.0.6998.135

App Info:
Name: Acode
Package Name: com.foxdebug.acodefree
Version: 1.11.1
Version Code: 957

Device Info:
Android Version: 14
Manufacturer: samsung
Model: SM-A556B
Platform: Android
Cordova Version: 13.0.0

Screen Info:
Width: 384
Height: 832
Color Depth: 24

Additional Info:
Language: en-US
User Agent: Mozilla/5.0 (Linux; Android 14; SM-A556B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/134.0.6998.135 Mobile Safari/537.36

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log
25-03-24T22:21:48.749Z] [ERROR] Uncaught Exception: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
Stack trace: java.lang.OutOfMemoryError: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
	at java.nio.HeapByteBuffer.(HeapByteBuffer.java:87)
	at java.nio.HeapByteBuffer.(HeapByteBuffer.java:71)
	at java.nio.ByteBuffer.allocate(ByteBuffer.java:380)
	at com.sshtools.synergy.ssh.CachingDataWindow.(CachingDataWindow.java:40)
	at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:61)
	at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:67)
	at com.sshtools.client.tasks.AbstractSubsystem.(AbstractSubsystem.java:61)
	at com.sshtools.client.sftp.SftpChannel.(SftpChannel.java:203)
	at com.sshtools.client.sftp.SftpClient.(SftpClient.java:363)
	at com.sshtools.client.sftp.SftpClient$SftpClientBuilder.build(SftpClient.java:296)
	at com.foxdebug.sftp.Sftp$2.run(Sftp.java:162)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

[2025-03-24T22:21:48.750Z] [ERROR] Uncaught Exception: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
Stack trace: java.lang.OutOfMemoryError: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:87)
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:71)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:380)
at com.sshtools.synergy.ssh.CachingDataWindow.(CachingDataWindow.java:40)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:61)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:67)
at com.sshtools.client.tasks.AbstractSubsystem.(AbstractSubsystem.java:61)
at com.sshtools.client.sftp.SftpChannel.(SftpChannel.java:203)
at com.sshtools.client.sftp.SftpClient.(SftpClient.java:363)
at com.sshtools.client.sftp.SftpClient$SftpClientBuilder.build(SftpClient.java:296)
at com.foxdebug.sftp.Sftp$2.run(Sftp.java:162)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

[2025-03-24T22:21:48.751Z] [ERROR] Uncaught Exception: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
Stack trace: java.lang.OutOfMemoryError: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:87)
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:71)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:380)
at com.sshtools.synergy.ssh.CachingDataWindow.(CachingDataWindow.java:40)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:61)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:67)
at com.sshtools.client.tasks.AbstractSubsystem.(AbstractSubsystem.java:61)
at com.sshtools.client.sftp.SftpChannel.(SftpChannel.java:203)
at com.sshtools.client.sftp.SftpClient.(SftpClient.java:363)
at com.sshtools.client.sftp.SftpClient$SftpClientBuilder.build(SftpClient.java:296)
at com.foxdebug.sftp.Sftp$2.run(Sftp.java:162)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

[2025-03-24T22:21:48.752Z] [ERROR] Uncaught Exception: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
Stack trace: java.lang.OutOfMemoryError: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:87)
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:71)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:380)
at com.sshtools.synergy.ssh.CachingDataWindow.(CachingDataWindow.java:40)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:61)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:67)
at com.sshtools.client.tasks.AbstractSubsystem.(AbstractSubsystem.java:61)
at com.sshtools.client.sftp.SftpChannel.(SftpChannel.java:203)
at com.sshtools.client.sftp.SftpClient.(SftpClient.java:363)
at com.sshtools.client.sftp.SftpClient$SftpClientBuilder.build(SftpClient.java:296)
at com.foxdebug.sftp.Sftp$2.run(Sftp.java:162)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

[2025-03-24T22:21:48.753Z] [ERROR] Uncaught Exception: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
Stack trace: java.lang.OutOfMemoryError: Failed to allocate a 16000016 byte allocation with 3509152 free bytes and 3426KB until OOM, target footprint 268435456, growth limit 268435456
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:87)
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:71)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:380)
at com.sshtools.synergy.ssh.CachingDataWindow.(CachingDataWindow.java:40)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:61)
at com.sshtools.client.SessionChannelNG.(SessionChannelNG.java:67)
at com.sshtools.client.tasks.AbstractSubsystem.(AbstractSubsystem.java:61)
at com.sshtools.client.sftp.SftpChannel.(SftpChannel.java:203)
at com.sshtools.client.sftp.SftpClient.(SftpClient.java:363)
at com.sshtools.client.sftp.SftpClient$SftpClientBuilder.build(SftpClient.java:296)
at com.foxdebug.sftp.Sftp$2.run(Sftp.java:162)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

[2025-03-24T22:22:23.844Z] [INFO] Started app and its services...
[2025-03-24T22:22:33.381Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-03-24T22:22:42.166Z] [ERROR] [object Object]
[2025-03-24T22:22:44.603Z] [ERROR] [object Object]
[2025-03-24T22:22:45.523Z] [ERROR] [object Object]
[2025-03-24T22:22:46.957Z] [ERROR] [object Object]
[2025-03-24T22:22:48.006Z] [ERROR] [object Object]
[2025-03-24T22:23:05.638Z] [ERROR] [object Object]
[2025-03-24T22:23:06.437Z] [ERROR] [object Object]
[2025-03-24T22:23:07.064Z] [ERROR] [object Object]
[2025-04-02T19:36:48.268Z] [INFO] Started app and its services...
[2025-04-02T19:36:48.975Z] [ERROR] Could not read key file: Unable to create OpenSSL PBDKF: no such algorithm: PBKDF-OpenSSL for provider BC
[2025-04-02T19:36:49.104Z] [ERROR] Could not read key file: Unable to create OpenSSL PBDKF: no such algorithm: PBKDF-OpenSSL for provider BC
[2025-04-02T19:36:49.221Z] [ERROR] Could not read key file: Unable to create OpenSSL PBDKF: no such algorithm: PBKDF-OpenSSL for provider BC
[2025-04-02T19:36:49.318Z] [ERROR] Could not read key file: Unable to create OpenSSL PBDKF: no such algorithm: PBKDF-OpenSSL for provider BC
[2025-04-02T19:37:08.336Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-02T19:37:50.400Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/js/build/main.build.js, Line: 2, Column: 911784, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.ge (https://localhost/js/build/main.build.js:2:911784)
[2025-04-02T19:37:50.429Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/js/build/main.build.js, Line: 2, Column: 911784, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.ge (https://localhost/js/build/main.build.js:2:911784)
[2025-04-02T22:08:18.962Z] [INFO] Started app and its services...
[2025-04-02T22:08:38.675Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-02T22:09:10.146Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/js/build/main.build.js, Line: 2, Column: 911784, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.ge (https://localhost/js/build/main.build.js:2:911784)
[2025-04-02T22:09:34.537Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/js/build/main.build.js, Line: 2, Column: 911784, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.ge (https://localhost/js/build/main.build.js:2:911784)
[2025-04-02T22:09:34.553Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/js/build/main.build.js, Line: 2, Column: 911784, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.ge (https://localhost/js/build/main.build.js:2:911784)
[2025-04-02T22:09:34.602Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/js/build/main.build.js, Line: 2, Column: 911784, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.ge (https://localhost/js/build/main.build.js:2:911784)
[2025-04-02T22:09:34.641Z] [ERROR] Error: Uncaught TypeError: Cannot read properties of null (reading 'scrollLeft'), Source: https://localhost/js/build/main.build.js, Line: 2, Column: 911784, Stack: TypeError: Cannot read properties of null (reading 'scrollLeft')
at HTMLDocument.ge (https://localhost/js/build/main.build.js:2:911784)
[2025-04-02T23:09:22.021Z] [ERROR] Unhandled rejection: Cannot read properties of null (reading 'forEach')
Stack: TypeError: Cannot read properties of null (reading 'forEach')
at Object.sortDir (https://localhost/js/build/main.build.js:2:374342)
at https://localhost/js/build/fileBrowser.build.js:1:23563
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.throw (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at c (https://localhost/js/build/main.build.js:2:583827)
[2025-04-03T06:21:36.446Z] [INFO] Started app and its services...
[2025-04-03T06:21:56.207Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-03T21:08:08.461Z] [INFO] Started app and its services...
[2025-04-03T21:08:28.201Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-04T07:32:43.627Z] [ERROR] Unhandled rejection: Cannot read properties of undefined (reading 'isUnsaved')
Stack: TypeError: Cannot read properties of undefined (reading 'isUnsaved')
at https://localhost/js/build/main.build.js:2:179635
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.next (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at s (https://localhost/js/build/main.build.js:2:583791)
at https://localhost/js/build/main.build.js:2:583850
at new Promise ()
at https://localhost/js/build/main.build.js:2:583731
at h (https://localhost/js/build/main.build.js:2:180702)
[2025-04-04T07:32:43.650Z] [INFO] Started app and its services...
[2025-04-04T07:33:03.857Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-06T22:29:49.397Z] [INFO] Started app and its services...
[2025-04-06T22:29:56.169Z] [ERROR] Unhandled rejection: Cannot read properties of null (reading 'forEach')
Stack: TypeError: Cannot read properties of null (reading 'forEach')
at Object.sortDir (https://localhost/js/build/main.build.js:2:374342)
at https://localhost/js/build/fileBrowser.build.js:1:23563
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.throw (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at c (https://localhost/js/build/main.build.js:2:583827)
[2025-04-06T22:30:09.213Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-06T22:30:56.787Z] [ERROR] Unhandled rejection: Unknown reason
Stack: No stack available
[2025-04-06T22:31:00.949Z] [ERROR] Unhandled rejection: Cannot read properties of null (reading 'forEach')
Stack: TypeError: Cannot read properties of null (reading 'forEach')
at Object.sortDir (https://localhost/js/build/main.build.js:2:374342)
at https://localhost/js/build/fileBrowser.build.js:1:23563
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.throw (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at c (https://localhost/js/build/main.build.js:2:583827)
[2025-04-06T22:31:10.085Z] [ERROR] Unhandled rejection: Cannot read properties of undefined (reading 'name')
Stack: TypeError: Cannot read properties of undefined (reading 'name')
at Object.edit (https://localhost/js/build/fileBrowser.build.js:1:6157)
at https://localhost/js/build/fileBrowser.build.js:1:17028
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.next (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at s (https://localhost/js/build/main.build.js:2:583791)
[2025-04-06T22:31:13.380Z] [ERROR] Unhandled rejection: Cannot read properties of undefined (reading 'name')
Stack: TypeError: Cannot read properties of undefined (reading 'name')
at Object.edit (https://localhost/js/build/fileBrowser.build.js:1:6157)
at https://localhost/js/build/fileBrowser.build.js:1:17028
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.next (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at s (https://localhost/js/build/main.build.js:2:583791)
[2025-04-06T22:31:23.639Z] [INFO] Started app and its services...
[2025-04-06T22:31:33.168Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-06T22:32:33.030Z] [ERROR] Unhandled rejection: Unknown reason
Stack: No stack available
[2025-04-06T22:50:24.066Z] [ERROR] Unhandled rejection: Unknown reason
Stack: No stack available
[2025-04-06T22:50:27.120Z] [ERROR] Unhandled rejection: Cannot read properties of null (reading 'forEach')
Stack: TypeError: Cannot read properties of null (reading 'forEach')
at Object.sortDir (https://localhost/js/build/main.build.js:2:374342)
at https://localhost/js/build/fileBrowser.build.js:1:23563
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.throw (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at c (https://localhost/js/build/main.build.js:2:583827)
[2025-04-09T20:57:17.208Z] [INFO] Started app and its services...
[2025-04-09T20:59:21.452Z] [ERROR] Unhandled rejection: Unknown reason
Stack: No stack available
[2025-04-09T21:01:50.853Z] [ERROR] Unhandled rejection: Cannot read properties of null (reading 'forEach')
Stack: TypeError: Cannot read properties of null (reading 'forEach')
at Object.sortDir (https://localhost/js/build/main.build.js:2:374342)
at https://localhost/js/build/fileBrowser.build.js:1:23563
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.throw (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at c (https://localhost/js/build/main.build.js:2:583827)
[2025-04-09T21:13:37.142Z] [ERROR] Unhandled rejection: Unknown reason
Stack: No stack available
[2025-04-09T21:13:44.538Z] [ERROR] Unhandled rejection: Cannot read properties of null (reading 'forEach')
Stack: TypeError: Cannot read properties of null (reading 'forEach')
at Object.sortDir (https://localhost/js/build/main.build.js:2:374342)
at https://localhost/js/build/fileBrowser.build.js:1:23563
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.throw (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at c (https://localhost/js/build/main.build.js:2:583827)
[2025-04-09T21:22:55.203Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2025-04-09T21:22:55.404Z] [ERROR] Unhandled rejection: Cannot read properties of undefined (reading 'isUnsaved')
Stack: TypeError: Cannot read properties of undefined (reading 'isUnsaved')
at https://localhost/js/build/main.build.js:2:179635
at h (https://localhost/js/build/main.build.js:2:384618)
at Generator. (https://localhost/js/build/main.build.js:2:385960)
at Generator.next (https://localhost/js/build/main.build.js:2:385047)
at r (https://localhost/js/build/main.build.js:2:583588)
at s (https://localhost/js/build/main.build.js:2:583791)
at https://localhost/js/build/main.build.js:2:583850
at new Promise ()
at https://localhost/js/build/main.build.js:2:583731
at h (https://localhost/js/build/main.build.js:2:180702)
[2025-04-09T21:22:55.476Z] [INFO] Started app and its services...
[2025-04-09T21:24:52.773Z] [ERROR] Unhandled rejection: Unknown reason
Stack: No stack available

@bajrangCoder
Copy link
Collaborator

How have you generated the key ?
Maybe try regenerating(maybe with different format)

@Kahz3l
Copy link
Author

Kahz3l commented Apr 10, 2025

It did work with the old version 1.11.0 though, so I don't think the key is the problem.
But I created it originally with puttygen on windows and converted it with puttygen (putty-tools) on Ubuntu into password protected pem format.

@bajrangCoder
Copy link
Collaborator

Okay

@bajrangCoder bajrangCoder added bug Something isn't working and removed needs info / awaiting response labels Apr 10, 2025
Copy link

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.

@github-actions github-actions bot added the stale label May 31, 2025
@Kahz3l
Copy link
Author

Kahz3l commented May 31, 2025

Bump

@bajrangCoder bajrangCoder removed the stale label Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants