Subscribe!

Don't forget to...

 Subscribe

Tuesday, December 27, 2016

Passwordless SSH access to the RPi

Got it working, and added some security changes.

Step 1: see https://help.github.com/articles/generating-an-ssh-key/ about generating ssh keys if you haven't already got them present in ~/.ssh (make sure you've used ssh-add and make sure the value for AuthorizedKeysFile in /etc/ssh/sshd_config is set to '%h/.ssh/authorized_keys')

Step 2: use http://raspi.tv/2012/how-to-set-up-keys-and-disable-password-login-for-ssh-on-your-raspberry-pi excluding the key gen section to get passwordless ssh working, turn off passwords, and get port forwarding working.  Remember, to update settings on the router, go to 192.168.0.1 - but only from the 1 of the 2 approved devices that you set.

Step 3: test the ability to login from a remote ssh client : 'ssh -p pi@yourdomain.com'



No comments:

Post a Comment