I have a user with name of Amit and I want to access the GCP VM with Amit user through username and password. When I try to solve it using PuTTY I got this error no supported authentication methods available (server sent: publickey) How can I solve this error??
Hi @sahilnaircool,
Welcome to Google Cloud Community!
Compute Engine VMs are configured by default to use SSH key-based authentication for security, and password-based authentication is typically disabled. To allow SSH access, you need to configure the VM to permit password authentication and ensure the user exists with a valid password. Use SSH key authentication, which is the recommended method.
See several reasons listed for Permission denied (publickey) error for checking.
You may also refer on below detailed conversations that might help resolve your issue:
How to connect to GCP VM instance with password using SSH?
can i connect with putty and ssh and how?
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.