SSh permission denied when try from one EC2 to another EC2

SSH permission denied when try to connect form one EC2 or another EC2 using putty
  • post-author-pic
    rajkumarl
    10-07-2018

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

  • post-author-pic
    mbtamuli
    10-07-2018

    You need to add the public key of server 1 in the authorized_keys file(~/.ssh/authorized_keys)  of the user you want to SSH into in server2.

  • post-author-pic
    mbtamuli
    10-07-2018

    You might also need to change security group rules to allow inbound traffic on the port SSH daemon is listening on(generally 22) in server 2.

Looking For Team Training?

Learn More