Re: [CentOS] CentOS 6.5 fresh install, public ssh keys cannot authenticate

2014-05-09 Thread Dan Bikle
I noticed that authorized keys had the group-write-bits set to 6. I fixed it: chmod 644 ~dan/.ssh/authorized_keys Now I can authenticate via public-key. Yay! Thanks Stephen On 5/9/14, Stephen Harris wrote: > On Fri, May 09, 2014 at 03:42:52PM -0700, Greg Bailey wrote: >> I think you're missi

Re: [CentOS] CentOS 6.5 fresh install, public ssh keys cannot authenticate

2014-05-09 Thread Stephen Harris
On Fri, May 09, 2014 at 03:42:52PM -0700, Greg Bailey wrote: > I think you're missing: > > chmod 600 ~dan/.ssh/authorized_keys > > Without it, sshd won't use the authorized_keys file if it's readable by > other users. (I think that's related to "StrictMode"; consult sshd man > page) No. Pub

Re: [CentOS] CentOS 6.5 fresh install, public ssh keys cannot authenticate

2014-05-09 Thread Digimer
On 09/05/14 06:42 PM, Greg Bailey wrote: > On 05/09/2014 03:34 PM, Dan Bikle wrote: >> Dear List, >> >> I cannot get public ssh keys to work in a fresh install of centos6.5 > [snip] >> Steps to reproduce this bug: > > [snip] > >> do this: >> >> cat ~dan/.ssh/id_rsa.pub > ~dan/.ssh/authorized_keys >

Re: [CentOS] CentOS 6.5 fresh install, public ssh keys cannot authenticate

2014-05-09 Thread Greg Bailey
On 05/09/2014 03:34 PM, Dan Bikle wrote: > Dear List, > > I cannot get public ssh keys to work in a fresh install of centos6.5 [snip] > Steps to reproduce this bug: [snip] > do this: > > cat ~dan/.ssh/id_rsa.pub > ~dan/.ssh/authorized_keys I think you're missing: chmod 600 ~dan/.ssh/authorized_

[CentOS] CentOS 6.5 fresh install, public ssh keys cannot authenticate

2014-05-09 Thread Dan Bikle
Dear List, I cannot get public ssh keys to work in a fresh install of centos6.5 This might be a centos bug. I've googled for a solution. Mostly I found threads suggesting I debug sshd or run ssh -v for clues. Also I've seen threads suggesting I look at file and directory permissions. I dont t