{"id":2221,"date":"2024-06-12T11:50:28","date_gmt":"2024-06-12T10:50:28","guid":{"rendered":"https:\/\/hoganhost.com.ng\/blog\/?p=2221"},"modified":"2024-08-12T13:59:44","modified_gmt":"2024-08-12T12:59:44","slug":"how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic","status":"publish","type":"post","link":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/","title":{"rendered":"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-medium wp-image-2222 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic-300x300.jpg 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic-1024x1024.jpg 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic-150x150.jpg 150w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic-768x768.jpg 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg 1080w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p class=\"h3\">Introduction<\/p>\n<p>The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios include a new package installation or the creation of new users.<\/p>\n<p><strong>In this tutorial, you will learn how to troubleshoot the SSH Permission denied error and reconnect to your SSH server.<\/strong><\/p>\n<p class=\"h3\">Prerequisites<\/p>\n<ul>\n<li>SSH client on the local machine and SSH server on the remote system<\/li>\n<li>A user account to access the remote server (for password-based login)<\/li>\n<li>A user account with\u00a0<strong>sudo<\/strong>\u00a0or\u00a0<strong>root\u00a0<\/strong>privileges<\/li>\n<\/ul>\n<h2 id=\"ftoc-heading-1\" class=\"wp-block-heading ftwp-heading\">What is Causing SSH Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)?<\/h2>\n<p>The SSH Permission denied error appears when trying to SSH into a server:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>Permission denied (publickey,gssapi-keyex,gssapi-with-mic)<\/code><\/pre>\n<figure class=\"aligncenter\"><\/figure>\n<p><img decoding=\"async\" class=\"wp-image-2223 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-permission-denied-publickey-gssapi-keyex-gssapi-with-mic-300x22.png\" alt=\"\" width=\"735\" height=\"54\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-permission-denied-publickey-gssapi-keyex-gssapi-with-mic-300x22.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-permission-denied-publickey-gssapi-keyex-gssapi-with-mic-768x56.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-permission-denied-publickey-gssapi-keyex-gssapi-with-mic.png 802w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>Following the Permission denied statement, the bracket contains the attempted\u00a0authentication\u00a0methods that failed at the initiation of the connection. The error suggests that the public key is the issue, which is misleading.<\/p>\n<p>One reason for the error may be\u00a0<strong><code>sshd_config<\/code><\/strong>, the file that contains SSH server configuration. The other possibility is that the\u00a0<strong><code>authorized_keys<\/code><\/strong>\u00a0file has insufficient permissions. This file contains the list of public keys for the clients allowed to SSH into the server. Consequently, the system\u2019s inability to read from the file results in the Permission denied error.<\/p>\n<h2 id=\"ftoc-heading-2\" class=\"wp-block-heading ftwp-heading\">How to fix SSH Permission denied<\/h2>\n<p>Both solutions contain steps you need to perform on the server-side. Start by opening the terminal on your server and proceed with one of the solutions below.<\/p>\n<h3 id=\"ftoc-heading-3\" class=\"wp-block-heading ftwp-heading\">Solution 1: Enable Password Authentication<\/h3>\n<p>If you want to use a password to access the SSH server, a solution for fixing the Permission denied error is to enable password login in the\u00a0<strong><code>sshd_config<\/code><\/strong>\u00a0file.<\/p>\n<p>To do this, open the file in a text editor.\u00a0 This example uses the nano editor:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>sudo nano \/etc\/ssh\/sshd_config<\/code><\/pre>\n<p>In the file, find the\u00a0<strong><code>PasswordAuthentication<\/code><\/strong>\u00a0line and make sure it ends with\u00a0<strong><code>yes<\/code><\/strong>.<\/p>\n<p>Find the\u00a0<strong><code>ChallengeResponseAuthentication<\/code><\/strong>\u00a0option and disable it by adding\u00a0<strong><code>no<\/code><\/strong>.<\/p>\n<p>If lines are commented out, remove the hash sign\u00a0<strong><code>#<\/code><\/strong>\u00a0to uncomment them.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-2224 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-passwordauthentication-300x98.png\" alt=\"\" width=\"609\" height=\"199\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-passwordauthentication-300x98.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-passwordauthentication-768x252.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-passwordauthentication.png 800w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/p>\n<p>Save the file and exit.<\/p>\n<p>Restart the SSH service by typing the following command:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>sudo systemctl restart sshd<\/code><\/pre>\n<h3 id=\"ftoc-heading-4\" class=\"wp-block-heading ftwp-heading\">Solution 2: Change File System Permissions<\/h3>\n<p>Using the password-based login as the SSH authentication method is not recommended due to\u00a0security concerns. Therefore, the following solution may be preferable since it troubleshoots\u00a0the public key authentication method.<\/p>\n<p>First, open the\u00a0<strong><code>sshd_config<\/code><\/strong>\u00a0file using a text editor:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>sudo nano \/etc\/ssh\/sshd_config<\/code><\/pre>\n<p>In the file, make sure the following options are set as follows:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>PermitRootLogin no\r\nPubkeyAuthentication yes<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2226 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-pubkeyauthentication-300x105.png\" alt=\"\" width=\"752\" height=\"263\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-pubkeyauthentication-300x105.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-pubkeyauthentication-768x270.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-pubkeyauthentication.png 800w\" sizes=\"(max-width: 752px) 100vw, 752px\" \/><\/figure>\n<\/div>\n<div class=\"notice-note\">\n<div class=\"note-icon-wrapper\"><\/div>\n<div class=\"notice-text\">\n<p><strong>Note:<\/strong>\u00a0The steps above are considered best security practices. If you need to use root login, set the relevant line to\u00a0<strong><code>yes<\/code><\/strong>.<\/p>\n<\/div>\n<\/div>\n<p>Comment out the GSSAPI-related options by adding the hash sign at the beginning of the line:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>#GSSAPIAuthentication yes\r\n#GSSAPICleanupCredentials no<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2227 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-gssapi-300x101.png\" alt=\"\" width=\"606\" height=\"204\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-gssapi-300x101.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-gssapi-768x259.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-gssapi.png 800w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<p>Also, make sure the\u00a0<strong><code>UsePAM<\/code><\/strong>\u00a0line is set to\u00a0<strong><code>yes<\/code><\/strong>:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>UsePAM yes<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2228 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-usepam-300x87.png\" alt=\"\" width=\"596\" height=\"173\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-usepam-300x87.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-usepam-768x223.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/editing-sshd-config-file-usepam.png 800w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/p>\n<p>Save the file and restart the sshd service:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>systemctl restart sshd<\/code><\/pre>\n<p>Now navigate to your home folder and check the permissions:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>ls -ld<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2229 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-home-folder-ls-ld-300x22.png\" alt=\"\" width=\"737\" height=\"54\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-home-folder-ls-ld-300x22.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-home-folder-ls-ld-768x57.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-home-folder-ls-ld.png 800w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><\/p>\n<p>If your owner permissions are not set to read, write, and execute (<strong><code>drwx------<\/code><\/strong>), use\u00a0the chmod command\u00a0to change them:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>chmod 0700 \/home\/[your-username]<\/code><\/pre>\n<p>Now go to the\u00a0<strong><code>.ssh<\/code><\/strong>\u00a0folder and recheck the permissions:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>ls -ld<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2230 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-ssh-folder-ls-ld-300x23.png\" alt=\"\" width=\"639\" height=\"49\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-ssh-folder-ls-ld-300x23.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-ssh-folder-ls-ld-768x59.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-ssh-folder-ls-ld.png 800w\" sizes=\"(max-width: 639px) 100vw, 639px\" \/><\/p>\n<p>This directory should also have read, write, and execute permissions for the file owner. To enforce them, use\u00a0<strong><code>chmod<\/code><\/strong>\u00a0again:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>chmod 0700 \/home\/your_home\/.ssh<\/code><\/pre>\n<p>The\u00a0<strong><code>.ssh<\/code><\/strong>\u00a0folder contains the\u00a0<strong><code>authorized_keys<\/code><\/strong>\u00a0file. Check its permissions with:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>ls -ld authorized_keys<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2231 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-authorized-keys-ls-ld-300x22.png\" alt=\"\" width=\"628\" height=\"46\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-authorized-keys-ls-ld-300x22.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-authorized-keys-ls-ld-768x57.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/output-from-authorized-keys-ls-ld.png 800w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/><\/p>\n<p>The file owner should have read and write permissions. To set them, use:<\/p>\n<pre class=\"wp-block-code copy-the-code-target\"><code>chmod 0600 \/home\/[username]\/.ssh\/authorized_keys<\/code><\/pre>\n<p>Now try logging in with the key pair again. The output below shows a successful login attempt.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2232 aligncenter\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-success-300x36.png\" alt=\"\" width=\"683\" height=\"82\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-success-300x36.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-success-768x91.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/ouput-from-ssh-server-success.png 800w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/p>\n<p class=\"h3\">Conclusion<\/p>\n<p>This tutorial covered the steps necessary to troubleshoot the<em>\u00a0SSH Permission denied (publickey,gssapi-keyex,gssapi-with-mic)<\/em>\u00a0error. By completing the steps in the guide, you should fix the error and successfully SSH into your server.<\/p>\n<p>Check out our cheap and reliable <a href=\"https:\/\/hoganhost.com.ng\">web hosting<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios include a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2222,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[62,4,11,32,5],"tags":[],"class_list":["post-2221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alma-linux","category-cpanel","category-server","category-ssh","category-whm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)<\/title>\n<meta name=\"description\" content=\"The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)\" \/>\n<meta property=\"og:description\" content=\"The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/\" \/>\n<meta property=\"og:site_name\" content=\"HoganHost blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/HoganHost\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-12T10:50:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-12T12:59:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Abigal okon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:site\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abigal okon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/\"},\"author\":{\"name\":\"Abigal okon\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\"},\"headline\":\"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)\",\"datePublished\":\"2024-06-12T10:50:28+00:00\",\"dateModified\":\"2024-08-12T12:59:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/\"},\"wordCount\":579,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg\",\"articleSection\":[\"Alma Linux\",\"Cpanel\",\"Server\",\"SSH\",\"whm\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/\",\"name\":\"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg\",\"datePublished\":\"2024-06-12T10:50:28+00:00\",\"dateModified\":\"2024-08-12T12:59:44+00:00\",\"description\":\"The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios\",\"breadcrumb\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg\",\"width\":1080,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hoganhost.com.ng\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"name\":\"HoganHost blog\",\"description\":\"Keeping you connected to everything from HoganHost\",\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\",\"name\":\"HoganHost\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"width\":466,\"height\":387,\"caption\":\"HoganHost\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/HoganHost\",\"https:\/\/x.com\/hoganhostng\",\"https:\/\/instagram.com\/officialhoganhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\",\"name\":\"Abigal okon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"caption\":\"Abigal okon\"},\"sameAs\":[\"https:\/\/hoganhost.com.ng\/blog\"],\"url\":\"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)","description":"The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)","og_description":"The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios","og_url":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/","og_site_name":"HoganHost blog","article_publisher":"https:\/\/facebook.com\/HoganHost","article_published_time":"2024-06-12T10:50:28+00:00","article_modified_time":"2024-08-12T12:59:44+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg","type":"image\/jpeg"}],"author":"Abigal okon","twitter_card":"summary_large_image","twitter_creator":"@hoganhostng","twitter_site":"@hoganhostng","twitter_misc":{"Written by":"Abigal okon","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#article","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/"},"author":{"name":"Abigal okon","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a"},"headline":"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)","datePublished":"2024-06-12T10:50:28+00:00","dateModified":"2024-08-12T12:59:44+00:00","mainEntityOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/"},"wordCount":579,"commentCount":0,"publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg","articleSection":["Alma Linux","Cpanel","Server","SSH","whm"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/","url":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/","name":"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg","datePublished":"2024-06-12T10:50:28+00:00","dateModified":"2024-08-12T12:59:44+00:00","description":"The SSH Permission denied error appears after permission-related settings are modified on the SSH server. Usual scenarios","breadcrumb":{"@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#primaryimage","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2024\/06\/How-to-Fix-SSH-Failed-Permission-Denied-publickeygssapi-keyexgssapi-with-mic.jpg","width":1080,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/hoganhost.com.ng\/blog\/cpanel\/how-to-fix-ssh-failed-permission-denied-publickeygssapi-keyexgssapi-with-mic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoganhost.com.ng\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix SSH Failed Permission Denied (publickey,gssapi-keyex,gssapi-with-mic)"}]},{"@type":"WebSite","@id":"https:\/\/hoganhost.com.ng\/blog\/#website","url":"https:\/\/hoganhost.com.ng\/blog\/","name":"HoganHost blog","description":"Keeping you connected to everything from HoganHost","publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hoganhost.com.ng\/blog\/#organization","name":"HoganHost","url":"https:\/\/hoganhost.com.ng\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","width":466,"height":387,"caption":"HoganHost"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/HoganHost","https:\/\/x.com\/hoganhostng","https:\/\/instagram.com\/officialhoganhost"]},{"@type":"Person","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a","name":"Abigal okon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","caption":"Abigal okon"},"sameAs":["https:\/\/hoganhost.com.ng\/blog"],"url":"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/2221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=2221"}],"version-history":[{"count":6,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/2221\/revisions"}],"predecessor-version":[{"id":2239,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/2221\/revisions\/2239"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media\/2222"}],"wp:attachment":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=2221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=2221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=2221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}