I just got a new macbook and I transferred everything from my old computer to my new one and I was pleasantly surprised that running that command still worked - I didn’t have to do any set up. EXCEPT for one of my servers. For one of my servers when I run that command the terminal prompts for a password which it never has before. It says:
jackson@compute.6803914608257989875’s password:
I have no idea what password this is referring to.
After some googling I SSH’d onto the server in the browser from within the GCP console and ran “sudo passwd” and set a new password. I restarted the server - tried SSHing again - it still asked me for a password - I entered the new one I created and it says:
Permission denied, please try again.
I have no idea if that was on the right track at all but just wanted to include what I tried.
Again - I have no problem SSHing into the other two servers and I can still SSH to the server in question on my old computer.
I’m no server expert so any insight would be greatly appreciated.
Have you tried to enter on these servers from serial console or directly from Google Web UI Console and tried to clear .ssh folder of the user in which you login? Let me know
I then ran gcloud compute ssh jackson@myservername from my old computer and I was able to SSH in successfully and a new authorized_keys file was created in my .ssh folder.
I didn’t mention this in my first post but the same thing is happening with my remote desktop client, Transmit. I can still get on the server successfully from my older computer but not my new one.
I don’t know why it’s asking for a password, I don’t know what it is, I don’t know how to change it and I don’t know what the “@compute.6803914608257989875” is at the end of my username when it asks for the password.
I went ahead and tried the solution in the link you provided anyway and got the same result. No matter what I try - this and only this server asks for a password and no matter what I enter it says “Permission denied, please try again.”.
Also, if I enter a wrong password too many times it crashes the server and I have to restart it in the GCP console.
Here is the output (I changed the server name):
jackson@Jackson ~ % gcloud compute config-ssh --remove
jackson@Jackson ~ % gcloud compute config-ssh
You should now be able to use ssh/scp with your instances.
For example, try running:
I updated Google Cloud CLI. Same result - for the server in question it still asks for a password. For my other servers I still successfully ssh into them.
I’m confused about the connectivity tests. The documentation offers a number of guides. Can you tell me which one applies to me?
Test between VM instances in a VPC network
Test between private IP addresses in a VPC network
Test IP addresses in a Shared VPC network
Test from a VM to a Google-managed service
Test from a VM to Private Service Connect endpoints
Test from an App Engine standard environment version to a destination
Test from a Cloud Function to a destination
Test from a Cloud Run revision to a destination
Test from a VPC network to a non-Google Cloud network
Test from a VM to a non-Google Cloud network
Test from a VM or an IP address to a load balancer
Test from a non-Google Cloud network to a VPC network
Test from a non-Google Cloud network to a non-Google Cloud network
Did you ever figure this out? I’m facing the same issue and I’m noticing that it only effects my servers that have passphrases attached to the SSH keys.
In my case, it’s a VM that only has internal IPs so I am connecting with Identity Aware Proxy. Same as you, I’m prompted with the: username@compute.{instanceID) Password: