google-cloud-platform - 如何更改默认的 Google Cloud 用户名?

标签 google-cloud-platform ssh google-compute-engine ssh-keys

我是 Google Cloud Platform (GCP) 的新手,我尝试创建一个新的 VM,但默认用户名很烦人。比如说,我的 gmail 是 example.email@gmail.com,用户名是 example_email。

如何将其更改为类似:smith,而不是 example_email?

非常感谢!

最佳答案

您不能更改默认用户名,因为它基于 Google 帐户身份。

您可以通过创建自己的私钥/公钥并在创建实例时指定用户名以及 SSH 公钥 (ssh-rsa) 或通过修改现有实例上的 SSH 设置来使用不同的用户名。

Adding or removing instance-level public SSH keys

然后您可以使用 SSH 和您想要的用户名 (smith) 登录实例。

关于google-cloud-platform - 如何更改默认的 Google Cloud 用户名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65746591/

相关文章:

python-3.x - 为什么 GCP Pub/Sub 订阅无法确认消息?

firebase - 基于参数的具有多个 where 子句的 Firestore 查询

google-cloud-platform - GKE : ingress loadbalancer does not use configured static IP

kubernetes - 如何判断现有集群的类型是地区性集群还是区域性集群?

linux ssh 代理并添加 : avoid repeating command

tensorflow - TPU术语混淆

unix - 使用 Erlang SSH 应用程序在远程 UNIX 服务器上执行命令

ssh - Ansible 无法与 SSH 连接(横幅交换)

amazon-web-services - 是否可以将AWS的转码服务与Google Storage一起使用?

kubernetes - 使用 ingress(Kubernetes) 路由服务时无法访问 perforce 服务器