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

Is it accurate to say that you are attempting to get an android application which streams you most recent and old movie (TV appears) for nothing? Playbox

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. yttomp3

Xender: Transfer files – using the list from which the circle of the user within the elementary form will be able to connect their system from others. Thanks to the integrated interface, since you can easily create the desired network still connect back a certain contingent of working machines. To share files to be this quite very simple, because the transfer is quite to be through wireless tie-up at maximum speed. The program offers highly comfortable options to scan a QR code. IN this code, all data is encrypted snare, so they do not need to install manually. Xender apk
Simple scan the QR-code, list decode Yes connect automatically using the for this reason. Such unique options that distinguish this program for the rest. So that is because that many owners appreciate is the addition of every second still use it for transfer of the required number of files. SINCE this RAM is not going to have to dig it out from the cables is the connectors. The time has come for wireless networks, therefore feel free to download this addition likewise start to eat them today.
Yes then eats unique to be able to communicate among themselves Android devices equal Apple. You will agree that these unique capabilities deserve respect. ON the program settings, you will always be able to meet all the adjustments that you will need for work. ALMOST through them, advanced users can fine-tune the tenet to provide the right amount of information. Xender: Transfer files is a simple an incredibly handy addition in whose favour transfer files among various devices. This program contains a huge cash opportunities in the interest of the connection of seemingly not connected things. http://pipslee.com/xender-download-for-android/

It contains:- Easy to follow detailed instructions which tellyou whichbrush, paint colour and stroke to use as itguides you through the design. downlodable ebooks An easy tool to enjoy sharing a daily prayer time with your babies, toddlers & kids.

Pages

Add new comment