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

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.

SSH, nice explanation, super useful in this case to my site where I galley with rights. I can redo my tests to finally get the expected result
Avocat victime

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

Pages

Add new comment