ipadecrypt icon indicating copy to clipboard operation
ipadecrypt copied to clipboard

On-device fallback method fails if device is setup with SSH key authentication

Open joshuaseltzer opened this issue 1 month ago • 0 comments

Describe the bug When utilizing the old "on-device" method (using the --on-device flag), it appears that SSH key authentication is not supported. This appears to be the case both during the bootstrap setup (VerifyHelper is failing) and also when attempting to actually perform a decryption task. Switching back to password authentication allows it to function again.

To Reproduce Steps to reproduce the behavior:

  1. Setup a device with SSH key authentication
  2. Run ipadecrypt bootstrap or ipadecrypt decrypt --on-device <app>
  3. Bootstraping or decryption will fail respectively since the tool will not be able to SSH into the device

Expected behavior SSH succeeds by using SSH key

Environment

  • Dopamine 3.0.12 (rootless)
  • iOS 16.4.1
  • iPhone X
  • ipadecrypt v0.9.0-rc.2

Additional context Additionally, it would be awesome if we could:

  1. Utilize entries in the SSH config file (~/.ssh/config) to connect to a device (I haven't actually tried testing this, maybe it's already supported?)
  2. Have the ability to set up more than one device. If there are multiple devices configured, the tool could prompt for user input to select which device should be used to perform the on-device decryption.

joshuaseltzer avatar Oct 30 '26 12:10 joshuaseltzer