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

Nice blog, Your work is great and i like you and hopping for some more nice posts. Continue writing such a nice blog. All paragraphs are described clearly and also give the good solution for the readers. I completed this post within a second and it is not boring. I will share this post to my friends and the others.I am sure all people will get new ideas and information from this article.

very interesting post.this is my first time visit here.i found so many interesting stuff in your blog especially its discussion..thanks for the post!

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
http://bavolex.com/

Hello David! Thanks for posting. I think there is something problem with authentication, may be there is no permission for the access this page. Your code is pretty correct and I don't think any changes needed here. My suggestion is to call to your technical solution provider. You may also talk to the tech support team at Tech Support El Segundo for some possible solution to your query. Try it.

You have faced the problem in the connectivity of ssh and sshd keys files. Here you wrote the actual problem with the code which help to understand that problem easily. I have got the solution of that problem from http://www.queensland-assignment.com. I think such authorized keys help to resolve that problems.

Very helpful information, It happens when you are not able to enter in any file , but there are some software on internet which will help you to get in , that’s not illegal, because sometimes files are yours, rushessay I found so much interesting things and files like these, but I found the software too.

Can't connect either, but gladly one of us just found the solution. Kidding, but also talking serious. I'm not that good in Linux, let's say just average .

I have been exploring for a bit for any high quality articles or weblog posts on this sort of space .
Exploring in Yahoo I finally stumbled upon this website.
Studying this information So i am glad to express that I've an incredibly good uncanny feeling I found
out exactly what I needed. I most certainly will make sure to do not put out of
your mind this website and provides it a glance on a
continuing basis.

I am so thankful for the time you took to help with my project in سنگ دکوراتیو. It was so nice of you to help me out the other day at کفپوش پارکینگی. We will always be grateful for all that you have done to help us in the کفپوش صنعتی. I will always remember how you helped me to get this wonderful opportunity. We are forever in your debt for helping us through this tough time.

I am so thankful for the time you took to help with my project in کفپوش اپوکسی . It was so nice of you to help me out the other day at رنگ های ترافیکی . We will always be grateful for all that you have done to help us in the رنگ اپوکسی . I will always remember how you helped me to get this wonderful opportunity. We are forever in your debt for helping us through this tough time.

Thank you for taking the time to share all of that great information with me about رنگ های ترافیکی . Your support, encouragement and advice have been extremely helpful for رنگ اپوکسی. I now feel confident that I’ve applied to the colleges that are the best fit for me and the degree I will be pursuing see رنگ های دریایی . Once the acceptance letters arrive, I will drop by to share the outcome. When it comes to high school guidance counselors, you’re simply the best.

Thank you for taking the time to share all of that great information with me about رنگ های صنعتی . Your support, encouragement and advice have been extremely helpful for رنگ کوره ای . I now feel confident that I’ve applied to the colleges that are the best fit for me and the degree I will be pursuing see رنگ سوله ای . Once the acceptance letters arrive, I will drop by to share the outcome. When it comes to high school guidance counselors, you’re simply the best.

I am so thankful for the time you took to help with my project in کفپوش اپوکسی. It was so nice of you to help me out the other day at کفپوش پلی یورتان. We will always be grateful for all that you have done to help us in the کفپوش ورزشی. I will always remember how you helped me to get this wonderful opportunity. We are forever in your debt for helping us through this tough time.

Pages

Add new comment