Google Compute Engine Permission denied (publickey,gssapi-keyex,gssapi-with-mic) SSH with Public Key on GCP | ILMU PROGRAMMER
Home » Google Compute Engine Permission denied (publickey,gssapi-keyex,gssapi-with-mic) SSH with Public Key on GCP

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.

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

Leave a Comment

 
Open chat
Perlu Bantuan Konsultasi ?
Hallo Pembaca.
Telp (021) 55670115 untuk terhubung langsung dengan kami.

Apakah ada yang bisa kami bantu?