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?
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,