Can't connect with ssh and sshd complains about permissions on authorized_keys files

I was recently trying to connect to a CentOS box from Windows and had the following error in /var/log/secure (after enabling DEBUG3 level logging in /etc/ssh/sshd_config):

Dec 19 18:01:05 hostname sshd[25119]: debug1: trying public key file /root/.ssh/authorized_keys
Dec 19 18:01:05 hostname sshd[25119]: debug1: Could not open authorized keys '/root/.ssh/authorized_keys': Permission denied

It's an SELinux problem, and I don't quite understand it, but here's the one-liner that fixes it:

restorecon -FRvv ~/.ssh

Found on stackoverflow: "SSHD Gives error could not open Authorized Keys, although permissions seem correct"

Tags: 

Comments

I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing.health insurance in Indonesia
ksk indonesia

I would be a decent resource. In the event that you ever need to take a portion of the heap off, I'd completely love to compose some material for your web journal in return for a connection back to mine. If it's not too much trouble send me an email if intrigued. Much obliged to you! text chat

Much obliged for the tips and info that you provide above, it is very useful for me..i truly value it.
Zobello - The Online Men's Fashion Store
online clothes shopping | online shopping fashion | online dress shopping | online shopping clothes | online shopping clothes | clothes shopping online | online shopping for clothes | shopping online clothes | clothing shopping sites | clothing online shopping | Blezer for man | blazers for men | casual blazers for men | men blazers | buy blazers online |
blazer online shopping | blazers for men online | casual blazer | blazers online india mens casual blazer | blazers for men online | blazers for mens | Swimwear for men | swimwear online india | buy swimwear online india | swimwear india | swimwear online | beachwear india | buy swimwear online | beachwear online | beachwear online india | buy swimwear online | swim shorts for men | swimming trunks online | swimsuit india | buy swimsuit online | canvas shoes for men | sneakers shoes | sneakers for men | sneakers shoes for men | sneaker shoes | buy sneakers online | best sneakers for men | sneakers shoes online | canvas sneakers | high ankle sneakers online india | high ankle shoes online | sneakers shoes online | backpacks for men | backpacks online | backpack bags | backpack online | buy backpacks online | backpacks online india | backpack online india | buy backpacks online india | backpacks india | backpack india | cheap backpacks online india | messenger bags for men | messenger bag | leather messenger bags for men | messenger bags for men india | messenger bags online shopping india | messenger bags india | messenger bags online india | messenger bags for men india | messenger bag online india | messenger bag india | Duffle bags online | duffle bags for men | duffle bags online india | duffel bags online | duffle bag online | duffle bags online india | leather duffle bag india | leather duffle bags online india | duffel bag online | buy duffle bag online | bags online india | online bag shopping | online bags shopping | online shopping bags | bags online shopping india | bags online | online bags | bags online shopping | buy bags online | buy laptop bags online

A debt of gratitude is in order for posting this information. I simply need to tell you that I simply look at your site and I discover it exceptionally fascinating and useful. I can hardly wait to peruse loads of your posts. Industrial Heating Systems

A debt of gratitude is in order for setting aside an ideal opportunity to examine this, I feel firmly that adoration and read more on this point. In the event that conceivable, for example, pick up learning, would you brain redesigning your web journal with extra data? It is extremely valuable for me. Best Hotels In Brickell

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
White Hat SEO

Pages

Add new comment