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

Error "Permission denied(publickey,gssapi-with-with-mic)" When connecting to Instance Using OPC user

Announcement
554
Views
0
Comments
edited Aug 9, 2022 3:11PM in Linux

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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