VM Debian Google Cloud帐户看不到其他帐户

发布于 2025-02-03 17:46:13 字数 484 浏览 4 评论 0原文

我想在Google Cloud上问一些有关Debian虚拟机的信息。因此,我在计算引擎和笔记本电脑上设置了一些配置@vm-name $ 在我的终端中。这样做之后,我克隆自己的github存储库来启动我的node.js服务器(在这种情况下,node.js服务器可能并不重要,但是git克隆对故事情节很重要)。 Then, I decided to disconnect from terminal and decided to do SSH-in-browser method.因此,我登录了我的电子邮件,这就是说account2@vm-name $。但是,当我输入ls时,GitHub文件夹不在那里。这是跨云服务的Debian VM的正常,因此不同的帐户看不到其他文件夹,还是实际上有与不同的“ SSH帐户”共享相同的文件?或者,也许我应该sudo git克隆,以便将其保存在VM中的root文件夹中?

非常感谢您的帮助!

I wanted to ask something regarding Debian Virtual Machine on Google Cloud. So I've set some configurations on my Compute Engine and on my laptop such that I can ssh to the VM from my laptop with ssh account1@IPAddress and now I'm logged in as account1@VM-name $ in my terminal. After doing so, I clone my own GitHub Repo to start my Node.js server (the Node.js server might be unimportant in this case, but the git clone is important to the story line). Then, I decided to disconnect from terminal and decided to do SSH-in-browser method. With that I'm logged in with my email, that is let's say account2@VM-name $. However, when I typed ls, the GitHub folder is not there. Is this normal with Debian VMs across cloud services such that different accounts cannot see other folders, or is there actually away to share the same files with different "ssh accounts"? Or maybe I should sudo git clone such that it is saved in the root folder in the VM?

Thanks a lot for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尤怨 2025-02-10 17:46:13
  1. 当您使用account1@vm-name登录并克隆您的github repo时,它将在/home/account1 目录中提供。


  2. 现在,当您现在使用account2@vm和do ls登录时,它将显示/home/account2 的详细信息,显然没有任何东西。

您可以使用以下命令。

sudo cd /home /account1

ls

  1. when you logged using account1@vm-name and cloned your github repo it will be available in /home/account1 directory.

  2. Now when you are logged in now with account2@vm and do ls , it will show details of /home/account2 and it is obvious nothing is there.

you can use below commands.

sudo cd /home/account1

ls

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文