Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you are trying to setup Students, faculty and staff can correct SSH directory permissions on Red Hat Enterprise Linux. 

Understanding the Error

Users trying to set up Public-Key Authentication and may see this the following error in the logs:

Code Block
Authentication refused: bad ownership or modes for directory

Your problem This issue is related to permissions and/or ownership. The following commands on the user account you are trying to setup set up should fix the problem:

  • chmod

...

  • go-w

...

  • ~/

...

  • chmod

...

  • 700

...

  • ~/.ssh

...

  • chmod

...

  • 600

...

  • ~/.ssh/authorized_keys

If that doesn’t work make sure you check, denyhosts, the commands above do not work, try to run the commands listed below:

  • denyhosts

  • pam system-auth

...

  • config 

  • your sshd_config

...

Filter by label (Content by label)
showLabelsfalse
max10
showSpacefalse
cqllabel in ( "ssh" , "directory" , "permissions" , "error" , "command" , "linux" , "desktop" ) and space = "IKB"
Page Properties
hiddentrue