Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • This was working for me on CentOS 7. root login with public key was working, but not for users on /home Commented Aug 10, 2018 at 13:41
  • I tried adding this to my Synology's config, and it caused sshd to fail to start. Nearly locked myself out of the server. Commented Jun 6, 2020 at 19:32
  • Instead of StrictModes no first try to set permissions 700 to your home folder chmod 700 /home/user Also check this article enter link description here Commented May 29, 2021 at 10:26
  • Sadly this would be the only solution but is not secure enough for my use-case Commented Sep 23, 2022 at 11:34
  • weird thing about ssh config - I found some elements just will not kick on even if you restart the daemon and only a full restart to the main runlevel target (or a reboot) would fix it, I did that and it was golden. Commented Mar 27 at 18:10