question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

See original GitHub issue
    steps:
      - name: Install SSH key
        uses: shimataro/ssh-key-action@v1
        with:
          name: id_rsa-prod
          private-key: ${{ secrets.RSA_KEY }}
          known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
          config: |
            Host prod
              HostName ${{ secrets.SERVER_IP }}
              Port ${{ secrets.SERVER_PORT }}
              User ${{ secrets.SERVER_USER }}

      - name: Publish
        run: |
          ssh prod -tt -i ~/.ssh/id_rsa-prod

output

Run ssh prod -tt -i ~/.ssh/id_rsa-prod
***@***: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
##[error]Process completed with exit code 255.

my sshd_config

PasswordAuthentication no
RSAAuthentication yes
PubkeyAuthentication yes

How can i do?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
falstackcommented, Jan 24, 2020

Thanks for your patience, I can work after changing the RSA encryption file

0reactions
victorshxcommented, Jun 23, 2022

Thanks for your patience, I can work after changing the RSA encryption file

I’m also facing this issue, may you elaborate on how to fix this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix SSH Failed Permission Denied (publickey,gssapi ...
The SSH Permission Denied (publickey,gssapi-keyex,gssapi-with-mic) appears on SSH login. This tutorial features the steps to fix the error.
Read more >
ssh : Permission denied (publickey,gssapi-with-mic)
Login to your server using console and open /etc/ssh/sshd_config file with an editor with root user and look for line PasswordAuthentication ...
Read more >
SSH: Permission denied (publickey,gssapi-with-mic,password)
The username and password you are trying are not accepted by the host. That means either you are connecting to the wrong server,...
Read more >
ERROR MESSAGE: Permission denied (publickey,gssapi...
ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) · Generate public and private SSH keys on the Ambari Server ...
Read more >
"Permission denied (publickey,gssapi-keyex,gssapi-with-mic ...
Trying to ssh without using the username. $ ssh -vvv -i ~/.ssh/aws.pem 52.88.251.23 Error message: Permission denied (publickey,gssapi-keyex, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found