My Oracle Support Banner

Troubleshooting "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)" / "Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)" / "Server Refused Our Key" Error on OCI/OCI-C DBCS Instance (Doc ID 2466228.1)

Last updated on JULY 09, 2020

Applies to:

Oracle Database Cloud Service - Version N/A to N/A [Release 1.0]
Oracle Cloud Infrastructure - Database Service - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Purpose

When trying to connect to a DBCS Instance using SSH, the SSH client returns: "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)" or "Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)" or "Server Refused Our Key" error. This note outlines the known causes of this error and how to fix them.

Please note the following best practice:Before you make any changes to the SSHD configuration, start a second SSH session and ensure that it remains connected while you edit the settings. This second ssh session serves as a backup. If SSH access got lost without a backup session available, one can repair the SSH setting by following the procedure: Repairing Configuration or Restoring Access to the Linux PaaS or IaaS Underlying VM (Doc ID 2085512.1)

 

Troubleshooting Steps

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
Purpose
Troubleshooting Steps
References

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