TeamAmaze / TeamAmaze/AmazeFileManager

SSH connection asks for private key password on every directory change

Open
#4,701 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Ssh/Scp/Sftp Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Describe the bug
v3.11.3 fixed the issue with ed25519 keys. SSH now works with these connections. However, the decrypted private key is not cached and the session is terminated immediately (Note that I am guessing from the observed behavior)

To Reproduce
Steps to reproduce the behavior:

  1. Create ssh connection with ed25519 encrypted privkey
  2. Use the connection
  3. Get asked for password (expected for the initial connection, i don't want my decrypted privkey stored by the app)
  4. Change directory
  5. Goto 3.

Note: App closes if you select 'cancel' on the password prompt

Expected behavior
Keep ssh session open until I close the tab or 5min of inactivity or sth.

Smartphone (please complete the following information):

  • Device: pixel 8a
  • OS: latest grapheneos
  • Rooted: no
  • Version: v3.11.3

Additional Notes
I have observed being able to cd without re-entering the passphrase sometimes. Have not found a way to consistently reproduce.

I have not checked if this is specific to ed25519 with encrypted privkey

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Reproduce the ed25519 encrypted-key flow, especially changing directories and cancelling the passphrase prompt, then trace the SSH session lifecycle; done means the session remains usable without prompting on each directory change and cancellation does not close the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.