Technology Errors

AWS SSH Key Login Failed Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

Having trouble logging into an AWS instance using an SSH key? I was too and when I finally figured out what the issue was I was kicking myself. Recently I was called to assist figuring out information about a clients AWS deployment for a project where the original developers were no longer available or answering questions. Most of the instances that I initially worked on had no issues once I was able to obtain the correct SSH key pem file from Amazon. When the project was closing down I was asked to assist backing things up and it appeared the SSH key was failing for two of the instances which also happened to be the oldest two instances (2 years old). Below I describe the error I was seeing via SSH as well as the easy resolution to the problem.

Technology Errors

Permission denied (publickey). fatal: The remote end hung up unexpectedly

You will receive the below dialogue if the SSH key for the server you are connecting from is configured incorrectly or does not exist at all. bash [web@server git-temp]$ git clone Initialized empty Git repository in /home/web/gittemp/.git/ Permission denied (publickey). fatal: The remote end hung up unexpectedly fetch-pack from ‘’ failed. [web@server git-temp]$ So…

Technology Insights

Add a SSH Key to Your Github Account for a Linux Server

Adding an SSH key to your account for a Linux server is easy. I did notice that it appeared I was doing something incorrectly but the issue was actually with Internet Explorer and once I switched to Firefox everything went smoothly.

  1. Open¬†GitHub Account Settings: Open in a browser and login. Click “account” in the top right corner.
    **NOTE** Make sure to use a browser other than IE. Firefox works just fine but IE will not open the area to add a new SSH key.