Acode icon indicating copy to clipboard operation
Acode copied to clipboard

SSH Client Plugin I/O Authentication Error on Android 14

Open xenotronicgamestudio-prog opened this issue 3 weeks ago • 3 comments

Check for existing issues

  • [x] Completed

Describe the bug / provide steps to reproduce it

I have been trying for days to get the official Acode SSH Client plugin to connect to a remote server via SFTP using a key. Everything works perfectly in Termux, but the plugin consistently fails with “I/O error: Authentication failed” even when the exact same key and settings succeed in Termux. Environment Acode version: 1.11.1 (paid / ad-free) Android version: 14 (stock Samsung One UI 6.1) Device: Galaxy S23 series SSH Client plugin version: latest from the in-app store (installed via https://acode.app/plugin/acode.ssh.client) Key details Key type: RSA 2048-bit and 4096-bit (both tested) Passphrase: tried with and without Key location: /storage/emulated/0/the.key (passphrase-free) and /storage/emulated/0/the2nd.key (with passphrase) Storage permission: “Allow access to all files” granted Same private key + public key on server works instantly with ssh -i ~/.ssh/the.key opc@... in Termux (no errors, instant login) Steps to reproduce Add new SFTP connection Host: any reachable SSH server (tested on Oracle Cloud Linux, Ubuntu, etc.) Port: 22 Username: valid user Private key: select any RSA key from /storage/emulated/0/ Passphrase: blank or correct passphrase Mode: SFTP Save → tap the connection → “I/O error: Authentication failed” Expected behavior Connection succeeds and remote filesystem mounts (like it does in Termux, JuiceSSH, ConnectBot, etc.). Actual behavior Immediate “I/O error: Authentication failed” even though the key is proven valid. This bug has been reported by multiple users for over a year (I/O errors with no-passphrase keys, passphrase-protected keys, ED25519, etc.). The underlying JSch library seems to be mishandling key decryption or Android’s scoped-storage paths. The workaround most people end up using is AcodeX/Termux, but the official SSH Client plugin is still seemingly broken on modern Android.

Thank you.

Environment

App version: 1.11.7 (paid) Android version: 14 Android SDK: 34 Device: Galaxy S23 / SM-S918B Brand: samsung Manufacturer: samsung WebView version: 129.0.6668.99 (Android System WebView) WebView package: com.google.android.webview Architecture: arm64-v8a Rooted: false Termux installed: true

If applicable, add mockups / screenshots regarding your vision

No response

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

Acode.log

@xenotronicgamestudio-prog Hey there, I would Like to tell you that, The plugin you mentioned (SSH Client plugin) as the Official Plugin is a Third Party Plugin, And For that plugin you need to contact the Developer of that Plugin.

Secondly, Acode has support by default ( / built-in ) for SFTP, FTP.

This bug has been reported by multiple users for over a year (I/O errors with no-passphrase keys, passphrase-protected keys, ED25519, etc.). The underlying JSch library seems to be mishandling key decryption or Android’s scoped-storage paths. The workaround most people end up using is AcodeX/Termux, but the official SSH Client plugin is still seemingly broken on modern Android.

I don't really know What "I/O errors with no-passphrase keys, passphrase-protected keys" is referring to! The "ED25519 Keys" issues were fixed by me in https://github.com/Acode-Foundation/Acode/commit/d98d349d28086809265c9eb309c6cd5ec88e203f

UnschooledGamer avatar Dec 09 '25 14:12 UnschooledGamer

Thank you for the timely response.

I suppose my issue is with the 3rd party plugin. With this plugin that is the error I can not shake when attempting to use the sftp file browser: 'I/O Error: Authentication Failed'. I have tried each key type passworded and without password aswell. I am however able to ssh with the Acode terminal, which shows the VM is setup correct.

'I/O Error: Authentication Failed' ...is this not an error Acode throws? Might it be specific to the plugin?

@xenotronicgamestudio-prog I suspect it's not an issue with Acode if you are using a third-party plugin. for this! if you can reproduce The issue on Acode's Implementation, Kindly do so (and a Video would be better, you can use any dummy servers.)

UnschooledGamer avatar Dec 09 '25 15:12 UnschooledGamer