-
Hello, I am attempting to connect remotely to PINN via a SSH key. I need to do this because I would not like to leave the connection unsecure, as I may need to access to system from the internet. I have been following the instructions in the README_PINN.md under “How to access the shell or SSH into PINN” I can properly SSH to PINN with the user/password method without trouble. However after I add my public key to /settings/.ssh/authorized_keys and switch to passwordless connection on my client, it states that the key cannot be found. I am pretty sure I did add the key properly as per the instructions, and I did it several times. I also decided to chmod the .ssh directory and the authorized_keys file to be sure, but it did not change anything. I do have “ssh” in the recovery.cmdline file and I know the key is correct as it is working fine to connect to another system on the same machine. Is there anything I am doing wrong? Thank you for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I didn't add any explicit instructions for creating the ssh keys and installing them, so perhaps there is a mistake in the expected format. |
Beta Was this translation helpful? Give feedback.
-
I am documenting the process more fully for Windows using Putty/Puttygen. |
Beta Was this translation helpful? Give feedback.
-
If you're getting "Server refused our key", then that at least means that Putty is sending a key. So probably just a key format issue. Using files from Matt's pinn/mjh.nz site should be ok, provided you have enabled ssh, which you seem to have done. Please have a look at: https://github.com/procount/pinn/wiki/Secure-SSH-with-Putty particularly the public key part for the RPi |
Beta Was this translation helpful? Give feedback.
If you're getting "Server refused our key", then that at least means that Putty is sending a key. So probably just a key format issue.
Using files from Matt's pinn/mjh.nz site should be ok, provided you have enabled ssh, which you seem to have done.
Please have a look at: https://github.com/procount/pinn/wiki/Secure-SSH-with-Putty particularly the public key part for the RPi