'Cannot login to ssh through web browser in Google Cloud [closed]
One particular user logs in to the console(logs in fine) and he clicks on SSH from the web browser. However he is getting the below error
then he tried logging in from the cloud console using the below command
gcloud compute ssh instance-name --zone ZONE
then getting the below error. error
He is able to login to the console using the organization credentials and the password is not expired.
Solution 1:[1]
Google machines have password auth disabled by default.
I would suggest deploying a fresh machine.
Or ask the person who changed the auth configs about what they did.
Solution 2:[2]
Here are the steps to check out when you were not able to SSH VM.
- Firewall open port 22 and check network tag.
- Check CPU utilization to avoid high CPU usage.
- SSH key is correct?
You can check the error logs in the serial console.
Solution 3:[3]
Likely you'd have to disable OSLogin. Don't use password authentication; it's just insecure ...
GCE permits to provision RSA private keys with project/machine meta data. Only because someone didn't understand how it works, this doesn't justify tearing down the default security measures.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gary Oak |
| Solution 2 | Tim Chiang |
| Solution 3 | Martin Zeitler |
