My Oracle Support Banner

SSH Permission Denied for User After Changing its Home Directory (Doc ID 2523432.1)

Last updated on OCTOBER 07, 2020

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Linux OS - Version Oracle Linux 6.0 to Oracle Linux 7.6 [Release OL6 to OL7U6]
Linux x86-64

Symptoms

 Getting permission denied when we are trying  to do ssh to the system using new user created

[localuser@]$ ssh -i  <PRIVATE_KEY> user1@<PUBLIC IP>
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
 

Changes

Created a new user call  user1 with different home location "/new/home"

Created subdirectory .ssh and authotized_key file with the correct public key. 

New home directoy is using the correct permission and owner.

 

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


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