SFTP 到 Google Compute Engine [英] SFTP into Google Compute Engine

查看:40
本文介绍了SFTP 到 Google Compute Engine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在 Compute Engine 上玩 Debian,想知道如何通过 SFTP 进入服务器.我找不到任何关于它的文档,希望有人能指出我正确的方向.

I have been playing around with Debian on Compute Engine and was wondering how I could SFTP into the server. I can't find any documentation on it and was hoping someone could point me in the right direction.

谢谢!

如果这不可能,那么通过 SCP 管理静态站点的最佳方法是什么?

If this isn't possible, is the best way to manage static sites through SCP?

推荐答案

概括来说,步骤如下:

  1. 安装并运行 gcloud SDK ($ gcloud init)
  2. 生成 SSH 密钥 ($ gcloud compute ssh)
  3. 设置 FTP 客户端(安装并添加密钥文件)
  4. 使用 SFTP 客户端连接到虚拟机

假设在此文档之前在这里问过这个问题

Assuming this question was asked here before this documentation from Google was available.

另外,我已经记录了这个,它可能会有所帮助:

Also, I have recorded this, it might be helpful:

https://www.youtube.com/watch?v=9ssfE6ODpak

仅供参考……如果您需要传输的文件非常小,那么您可能不需要 SFTP 客户端.直接从控制台传输,如下所示 https://youtu.be/HEdXEEYOynE

And just an FYI .. if the files that you need to transfer are pretty small in size then maybe you don’t need a SFTP client. Transfer directly from the console as seen here https://youtu.be/HEdXEEYOynE

这篇关于SFTP 到 Google Compute Engine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆