Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
April 24, 2025 at 23:15 in reply to: Unable to use key-based authentication when connecting from iPad to Pi #52794
MagikMarkerz
ParticipantI can share the key-pair if that would be beneficial, but I’d prefer a more discrete way of doing so, like email. Let me know if you need it.
April 22, 2025 at 23:57 in reply to: Unable to use key-based authentication when connecting from iPad to Pi #52750MagikMarkerz
ParticipantOkay, here’s what I did:
- Delete and recreate the
~/.nx/config/authorized.crt
file so that no old keys could potentially get in the way. - Recreated a new key for the tablet and sent it over to the
~/.ssh/authorized_keys
file on the Raspberry Pi using Termius. - Disabled password authentication in the
sshd_config
for the RasPi. - Connected to the RasPi from the tablet to ensure that the key worked.
- Once confirmed that the private/public keys were working, I copied the tablet’s public key from the
authorized_keys
file to theauthorized.crt
file. - Copied the private key from Termius and placed it in a file then saved it into a folder on the tablet.
- Adjusted the
/usr/NX/etc/server.cfg
file to allow both NX keys and NX password. - Restarted the NX Server.
- Connected to the RasPi using username/password to ensure a connection could be established.
- Disconnected and then tried reconnecting using key-based authentication and selecting the file that I made earlier with the private key (Note: Import the private key to the connection file has been set to OFF).
- Received the following error: Authentication failed, please try again.
- Connected my tablet to my Macbook and followed your instructions to copy/compress the
nx
folder. I’ve attached that compressed file to this response.
Hopefully that gives you everything that you’re looking for. Please let me know if there’s anything else you need.
Thanks for the help.
Attachments:
- Delete and recreate the
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)