0

Since last week, I've been unable to ssh into my instances on compute engine, either from the command line or the gcp console.

I get the following message:

(gcloud.compute.ssh) User [kxxgxxx@gmail.com] does not have permission to access users instance [kxxgxxx@gmail.com] (or it may not exist): End user credentials must match the user specified in the request. Request for user [ kxxgxxx@gmail.com] does not match the credential for [KxxGxxx@gmail.com].

Originally, my email had uppercase letter (KxxGxxx@gmail.com). But when I log in on gcp, my email is lowercased. Never had any issue with about a week ago. Now I can't log in. I can log in from other accounts but can't reach this one. Some processes are running from this account so I need to be able to mange it again.

Thanks for reading and helping!

I tried to log log out and log in but it didn't change anything. I tried to log in from a different account. That works.

EDIT :

I use the following command to ssh: gcloud compute ssh <instance-name>

Shinkei
  • 1
  • 2
  • I don't know the answer but another post has similar problems. Looks like something has changed in GCP: https://stackoverflow.com/questions/75894668/what-causes-gcp-iam-to-auto-capitalize-the-username-email – John Hanley Apr 01 '23 at 18:42
  • 1
    You can use the `sudo -u /bin/bash` to switch identities to the problem username once logged in using a different user. – John Hanley Apr 01 '23 at 18:44
  • What is the command line that you are using and the exact error message? Add that to your question. – John Hanley Apr 01 '23 at 18:50
  • Thanks for the link, yes I got the same issue! I edited the question with the command line I also tried to sudo but I couldn't switch user. Maybe I'm not typing the user correctly but I get `sudo: unknown user: kxxgxxx_gmail_com` `sudo: unable to initialize policy plugin` – Shinkei Apr 02 '23 at 21:32
  • List the home directory to check for the users: `ls -l /home`. I will guess that you will find that the user's home directory and username have uppercase characters. I have not verified this, but you should be able to rename the directory to be all lowercase. Then check the list of users for the exact spelling and case: `cat /etc/passwd | cut -d: -f1`. – John Hanley Apr 02 '23 at 23:51
  • Thanks for the info I didn't manage to log in as a different the users, but it seems they solved the issue with the last update. I can log in again. Thanks for the help! – Shinkei Apr 08 '23 at 15:01

1 Answers1

0

It seems the issue has resolved itself. Maybe with the last gcloud update.

Shinkei
  • 1
  • 2