Google Compute Engine Permission denied (publickey,gssapi-keyex,gssapi-with-mic) SSH with Public Key on GCP

   

Hi,
Case : Connect to server with SSH : Error Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

Solution:
[1] Server Host: Generate SSH with ssh-keygen -t rsa >> enter id_rsa >> enter Your Password
[2] Server Host: Show rsa with cat id_rsa.pub and copy paste
[3] Console Google: Insert Public key from copy paste Server Host to Meta data > SSH Key

[4] Server Client : sudo vi /etc/ssh/sshd_config > PasswordAuthentication yes > sudo systemctl restart sshd
[5] Server Client (Set Password): sudo passwd > Enter your password
[6] Server Host: ssh <<ipserverclient>> and enter your password

Done.

   

Wahyu Amaldi, M.Kom has written 177 articles

Hallo Pembaca,
Saya merupakan konsultan di dunia SAP dan merupakan Spesialis .Net Programming.
Saya gemar berbagi pengalaman mengenai SAP & Dunia Programming, dan jika ada sesuatu yang perlu ditanyakan, bisa hubungi saya di email berikut ini:

Email 1 : wahyu.amaldi@outlook.com
Email 2 : wahyu.amaldi@ilmuprogram.com

Semoga Artikel yang Anda baca di website ini berguna dan dapat membantu Anda dalam menemukan solusi.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>