android:ssh_key_solid_explorer
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
android:ssh_key_solid_explorer [2023-10-21 11:03] – deleted zlg | android:ssh_key_solid_explorer [2023-10-21 11:03] (current) – old revision restored (2020-07-01 19:14) zlg | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SSH Keys in Solid Explorer ====== | ||
+ | Solid Explorer supports many options for additional storages. With that comes SSH mount point support. However, Solid Explorer expects an SSH key to be in a given format and appears to not support the new OpenSSH 2.0 format. Therefore, we need an **SSL** formatted key, i.e. DSA or (preferably) RSA. | ||
+ | |||
+ | Thankfully, it's easy (if strange) to produce a converted copy of your private key. Be sure to back it up first, though; we're going to overwrite it temporarily: | ||
+ | |||
+ | <code bash> | ||
+ | # Copy your original (probably OpenSSH format already) to a safe place. | ||
+ | # The ' | ||
+ | cp -p .ssh/id_rsa / | ||
+ | |||
+ | # We're technically exporting the public key to a file, and counting on | ||
+ | # a side effect in ssh-keygen that changes the private key for us. If this | ||
+ | # looks contradictory, | ||
+ | # to generate the public key, so it needs to convert the private key anyway. | ||
+ | ssh-keygen -e -m PEM -p > id_rsa.pub.rsa | ||
+ | </ | ||
+ | |||
+ | Note the '' | ||
+ | |||
+ | So, let's move on: | ||
+ | |||
+ | <code bash> | ||
+ | # check the format of the key | ||
+ | head -n 1 .ssh/id_rsa | ||
+ | # Expect this output: | ||
+ | -----BEGIN RSA PRIVATE KEY----- | ||
+ | # If you see the above, copy the now-converted private key somewhere. | ||
+ | cp -p .ssh/id_rsa / | ||
+ | </ | ||
+ | |||
+ | Once you've done the above, you can (A) re-run ssh-keygen with '' | ||
+ | |||
+ | Now that we have our private key in the correct format, get it onto the phone however you need to and hook it up to Solid Explorer. It should prompt you for the passphrase and open up your SSH shares! | ||
+ | |||
+ | The core cause behind this issue was an update in OpenSSH causing the default storage format for private keys to favor RFC4716 over OpenSSL formats. Ideally, one should be able to tell SSH to store keys in multiple formats. That is not likely, however, so it's good to just keep a pre-made RSA export handy. You never know when a program like Solid Explorer might need it. |
android/ssh_key_solid_explorer.1697886184.txt.gz · Last modified: 2023-10-21 11:03 by zlg