getting in with private/public key
frater 08 Jun 2009 21:40
After creating the file /root/.ssh/authorized_keys I still wasn't able to get in.
Authentication refused: bad ownership or modes for directory /root
It turned out there was a write permission for the group.
This command fixed it
chmod g-w /root
All write flags except for users should be gone….