Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remote connections without passwords' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remote connections without passwords
Authored by: AlwaysLearning on Aug 06, '14 02:43:21AM

Things might be a little different on OS X 10.9.4 now...

On my other machines I could enter the remote public key into the ~user/.ssh/authorized_keys2 file. On OS X 10.9.4, however, I had to use the ~user/.ssh/authorized_keys file (note: no "2" on the end).

Be sure that the .ssh folder and authorized_keys file have the correct permissions otherwise sshd will not try to use them:

chmod 700 ~user/.ssh

chmod 600 ~user/.ssh/authorized_keys

If you want to login using Public Key authentication and without a password (for the target machine anyway, your Private Key on the connecting machine should still have a password - which can be supplied by ssh-agent or Pageant on Windows if needed) you'll need to edit the /etc/ssh_config file and ensure that you have the following two settings applied:

PasswordAuthentication no

PubkeyAuthentication yes

Now you should be able to go to System Preferences > Sharing and turn off/on Remote Login (if it was running, turn it off first so it gets the new ssh_config settings), and be able to connect from your remote machine.

Hope this helps.



[ Reply to This | # ]