I am having trouble accessing servers created on GCP with the Ubuntu 24.04 operating system. I normally access them through the GCP SSH connection, but I cannot make the SSH connection through Putty on the same network. I am using a Windows server on the same network to perform Putty (SSH), it shows the error “No Supported authentication methods available (server sent: publickey)”. Firewall rules are released, I can perform telnet on port 22 normally. The sshd_config file settings were performed the same as the Ubuntu 18.04 servers. The problem persists… 8 servers were created and all have the same problem.
Hello @mmoraes ,Welcome on Google Cloud Community.
This errors indicates that the server is configured to use public key authentication but PuTTy is not configured to use this key at all ( or key taken from Putty is wrong)
-
Did you’ve tried maybe not using Putty but for example Moba and connect to those VMs via Moba ssh ?: https://mobaxterm.mobatek.net/
-
Do you have access to those VMs ? Maybe via browser ssh ?
-
You can check your Putty key following those steps:
-
Generate a .ppk File for PuTTY: If you have a private key in OpenSSH format, you need to convert it to PuTTY’s .ppk format using PuTTYgen.
- Open PuTTYgen.
- Load your existing private key (e.g.,
id_rsa). - Save the private key as a
.ppkfile.
-
Configure PuTTY to Use the .ppk File:
- Open PuTTY.
- Navigate to
Connection>SSH>Auth. - Browse and select your .ppk file.
-
Ensure Correct Username:
- In PuTTY, under
Session, ensure you are using the correct username for the server. The default username for GCP Ubuntu instances is usuallyubuntu.
- In PuTTY, under
–
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost