My Oracle Support Banner

ssh Fails with Error Log "Authentication Refused: Bad Ownership Or Modes For Directory /home/XXX" in OCI-C or OCI Linux Instances (Doc ID 2407691.1)

Last updated on AUGUST 16, 2018

Applies to:

Oracle Linux Cloud Service - Version Oracle Linux 6.3 and later
Oracle Cloud Infrastructure - Version N/A and later
Oracle Compute Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

 Not able to login through SSH to Cloud Instance. Error shows "Server refused our key". In this article, we used issue with user "usertest" for document purpose, This issue could be applicable to any user.

 

 

/var/log/secure :


Jun 5 21:13:36 test sshd[6245]: Authentication refused: bad ownership or modes for directory /home/usertest
Jun 5 21:13:36 test sshd[6245]: Authentication refused: bad ownership or modes for directory /home/usertest
Jun 5 21:13:36 test sshd[6245]: Authentication refused: bad ownership or modes for directory /home/usertest

 

Changes

 Directory permission was changed to 777

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.