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!

Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene.
get more

Portable workstation software program must be "stacked" into the pc's stockpiling (comprehensive of the troublesome drive or memory). Once the product has stacked, the tablet is fit for execute the product program. download freeware

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists.
Ian Battson

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/

In the UK a court order was given in April 2015 to ISPs to block URLs that provided either the Popcorn Time application software (PTAS) or “sources of update information” (SUI) – i.e. pointers to torrent-indexing sites. popcorn flix

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.

Pages

Add new comment