SSH Permission Denied for User After Changing its Home Directory
(Doc ID 2523432.1)
Last updated on DECEMBER 08, 2022
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]
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).
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.
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