如何将文件从 SSH 复制到 Google Cloud Repo
How to copy files from a SSH into a Google Cloud Repo
我无法在 SSH 中使用“gcloud app deploy”,所以现在我需要获取这些文件并将它们放入我的 Google 存储库(我的项目)中,然后进行部署,这样我就可以创建网站与文件(包括用于网站的 html)。以下是 SSH 中的文件:
jinthemix@cloudshell:~ (website-deploying-gc)$ ssh jinthemix@vergil.u.washington.edu
Password: _
Last login: Wed Jan 20 20:20:45 2021 from 157.119.197.35.bc.googleusercontent.com
vergil11$ ls
GITREPOS IMD233 Mix 1 Mix 2 Mix 3 Mix 4 Files public_html README.md websitedeployinggc
vergil11$ cd Files
vergil11$ cd websitegc
vergil11$ ls
app.yaml IMD233 Files README.md www
vergil11$
下面是 google 云的样子(除了这里已有的文件外,没有其他文件):
jinthemix@cloudshell:~ (website-deploying-gc)$ ls
README-cloudshell.txt
jinthemix@cloudshell:~ (website-deploying-gc)$
关于如何将文件复制到本地 google 云项目的任何想法都会有所帮助,谢谢
使用来自 CloudShell
的 scp
command
jinthemix@cloudshell:~ scp -r jinthemix@vergil.u.washington.edu:~/Files/websitegc/* .
此命令使用 OpenSSH 在网络上的主机之间复制文件,并借助 -r
标志,它将对指定主机内的所有文件和文件夹递归执行此操作。
我无法在 SSH 中使用“gcloud app deploy”,所以现在我需要获取这些文件并将它们放入我的 Google 存储库(我的项目)中,然后进行部署,这样我就可以创建网站与文件(包括用于网站的 html)。以下是 SSH 中的文件:
jinthemix@cloudshell:~ (website-deploying-gc)$ ssh jinthemix@vergil.u.washington.edu
Password: _
Last login: Wed Jan 20 20:20:45 2021 from 157.119.197.35.bc.googleusercontent.com
vergil11$ ls
GITREPOS IMD233 Mix 1 Mix 2 Mix 3 Mix 4 Files public_html README.md websitedeployinggc
vergil11$ cd Files
vergil11$ cd websitegc
vergil11$ ls
app.yaml IMD233 Files README.md www
vergil11$
下面是 google 云的样子(除了这里已有的文件外,没有其他文件):
jinthemix@cloudshell:~ (website-deploying-gc)$ ls
README-cloudshell.txt
jinthemix@cloudshell:~ (website-deploying-gc)$
关于如何将文件复制到本地 google 云项目的任何想法都会有所帮助,谢谢
使用来自 CloudShell
的scp
command
jinthemix@cloudshell:~ scp -r jinthemix@vergil.u.washington.edu:~/Files/websitegc/* .
此命令使用 OpenSSH 在网络上的主机之间复制文件,并借助 -r
标志,它将对指定主机内的所有文件和文件夹递归执行此操作。