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


Click here to return to the 'Fix broken SSH Public Key Authentication' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix broken SSH Public Key Authentication
Authored by: matt.simerson on Sep 25, '07 09:25:42PM
Simply doing a chmod g-w will only fix one type of permssion problem that sshd may have. Since nobody has posted the correct permissions and how to set them, that information is as follows:

chmod 755 ~
chmod 700 ~/.ssh

Should you encounter sshd issues in the future, a much easier solution to discovering why sshd isn't playing nice is to watch the log file:

sudo tail -F /var/log/secure.log

and then attempt to log in. If there's a problem, sshd will tell you what it is.

Finally, using ssh keys without passwords is a poor practice. If someone is able to get your private key, they now have access to all the systems you have installed the public key on. There are several good ways to use ssh-agent on your mac, which relieves the burden of typing your password in every time you authenticate. I've even got a ssh-agent startup script for Mac OS that makes it quite painless.

[ Reply to This | # ]
Fix broken SSH Public Key Authentication
Authored by: Sesquipedalian on Sep 25, '07 10:00:20PM

Ah, thanks for the tip, matt!

Your script looks useful. I may try it to ease using ssh from work to home. Thanks again.



[ Reply to This | # ]