Error "Permission denied(publickey,gssapi-with-with-mic)" When connecting to Instance Using OPC user
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Symptoms
Unable to connect to instance getting error "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)" when login in with opc user
Changes
Created a new user and added the following to /etc/ssh/sshd_config file
AllowUsers <USER>
Cause
AllowUsers should be followed by a list of all user or admin name patterns, separated by spaces.
In this case opc user is missing from the list
Solution
- Login to Serial console and single user mode following documents below
https://docs.oracle.com/en-us/iaas/Content/Compute/References/serialconsole.htm
Tagged:
0