linux - 将 ftp 文件发送到 Google Cloud debian 9

标签 linux google-cloud-platform ftp debian

我正在尝试使用以下方式将文件发送到谷歌云:

ftp -inv $HOSTFTP << EOF
user $USERFTP $PASSFTP
binary
get file.zip
bye
EOF

我配置:

 Host xx.xxx.xxx
   StrictHostKeyChecking no

但是当我尝试在谷歌云中使用 ftp 时,总是连接丢失! 另一个服务器正在工作.. 怎么了? 我正在考虑来自谷歌云虚拟机的一些 block 。

最佳答案

在 GCP 中有一个内置的概念 Firewall Rules .

默认情况下,任何新 VM 都会打开有限数量的端口(例如 80 和 443)- 确保机器具有防火墙规则允许的端口 21 和 22。

关于linux - 将 ftp 文件发送到 Google Cloud debian 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57823434/

相关文章:

linux - 在bash shell中,如何对()、(())、[]、[[]]和{}的用法进行分类?

reactjs - 如何在 Next.js 上设置健康检查的端点?

google-cloud-platform - Google Vision OCR,将 90、180、270 个文档中的单词坐标旋转到 0 度

c - 在我的 FTP 服务器上列出目录时出现 "bare linefeeds received in ASCII mode"警告

linux - 二维数组打印后 AWK 文件脚本打印

php - 在 ubuntu 上运行 html 和 php

linux - 符号链接(symbolic link)将 java 安装到/usr/java/latest

google-cloud-platform - gcloud auth 登录抛出错误 : gcloud crashed (ConnectionError): HTTPSConnectionPool(host ='oauth2.googleapis.com' , 端口 = 443):超过最大重试次数

html - 使用 Putty 和 FTP 查找文件

c - 如何将 "log in"作为 C 中的用户?