Connection via PuTTY to Linux VM on Google Cloud

gcp putty connection

While trying to connect to google cloud linux instance using Putty, many users get following error:

Disconnected: No supported authentication methods available (server sent: publickey)

To avoid this error while putty connection with google cloud, you can follow these steps:

1. While creating ftp user to connect with google cloud, copy the public key.

google cloud putty connection

2. Go to VM instance you want to connect. Click on edit.

3. Click on show and edit ssh keys

google cloud

4. Click on Add item to add new public key you copied and save the changes.

5. Come back to puTTY connection screen. Click on Connection-> SSH-> Auth and select the ppk file which you saved while creating ftp user for google cloud instance.

putty

6. Add your google instance IP in main putty screen and open the terminal. There you can type the username and enter.

putty connected

Now you are connected to Google cloud instance.

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.