You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Permission denied (public key) during SSH login with opc user

edited Jun 28, 2022 12:16PM in Linux

Applies to:

Oracle Linux Cloud Service - Version Oracle Linux 6.0 and later

Oracle Cloud Infrastructure

Linux x86-64

 

Symptoms

User gets a permission denied (public key) / Disconnected message, when logging in with the opc user.

One cannot access the Linux instance with the opc user after modifying the SSH public key inside the instance or file permissions inside /home/opc/.ssh

 

Changes

Changed the /home/opc/.ssh/authorized_keys file or file permissions inside /home/opc/.ssh or the /home/opc directory.

 

Cause

If the ssh keys in authorized_keys are incorrect in any way, or file permissions have been changed then the ssh user cannot login

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!