Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

can i connect with putty and ssh and how?

hi,

just recently i have signed up with google cloud and created a VM instance in their Qatar location. i got the external IP and SSH via console looks fine but I will need to access SSH with putty. well, with putty it connects to port 22 just fine but as soon as I put any user name in I get the error message:

No supported authentication methods available (server sent: public key)

the google documentation did not help me there much. I tried to follow it but was unsuccessful. what should I do?

3 1 406
1 REPLY 1

Hi @onlibepayments ,

Firstly, could you please check if your Putty version is up to date? After ensuring this, could you try the following steps sequentially?

1. Access the sshd_config file located in /etc/ssh/ directory using any text editor (nano, vi, vim, it doesn't matter).


2. Update the following lines within the sshd_config file:
PasswordAuthentication yes
ChallengeResponseAuthentication yes


3. After updating the configuration, restart the SSH service by executing:
/etc/init.d/ssh restart

Best,