Hi Thomas,

You had the right idea. 

/var/log/auth.log told me what the problem was:

Jul  4 16:31:38 ip-10-212-118-67 sshd[18792]: Authentication refused: bad 
ownership or modes for file /root/.ssh/authorized_keys

This was not working:

# ls -l /root/.ssh/authorized_keys
-rw------- 1 ubuntu ubuntu 612 2010-07-04 16:30 /root/.ssh/authorized_keys

After this command it works now:

# chown root:root /root/.ssh/authorized_keys

Thanks a lot for your help! :-)

Best Regards,
   Christian 


Am Sonntag, 4. Juli 2010 schrieb Thomas Mueller:
> 
> > But Ubuntu does not allow to login as root.
> > 
> > # ssh [email protected] Permission denied
> > (publickey).
> 
> did you check the /var/log/auth.log and /var/log/syslog on the slave for 
> sshd error messages?
> 
> if you created the /root/.ssh directory yourself on the slave it has 
> maybe wrong permissions.
> 
> or maybe ubuntu has disabled root login in /etc/ssh/sshd_config ? but 
> last time i used it it was not disabled.
> 
> - Thomas
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to