您使用什么工具将文件上传到亚马逊ec2 Linux实例?
我正在使用捆绑了 LAMP 堆栈的标准 fedora AMI,并且我想将文件从 Windows 桌面上传到服务器。
对此的“正常”方法是什么?尽管我对 FTP 和 BASH shell 的基础知识非常熟悉,但无论如何我都不是 UNIX 管理员。
据我所知,远程虚拟机上默认没有安装 FTP 服务器,并且由于防火墙限制,我无法在我的终端上打开 FTP 服务器。我查看了 WinSCP,但在详细安装和配置之前,我想知道执行此操作的预期方法是什么。无论如何,我不明白 WinSCP 或任何其他基于 FTP 的工具如何在没有目标机器监听的情况下工作,这意味着类似 FTP 服务器的东西。
有没有类似Windows远程桌面连接的东西?
我可以从 EC2 内安装 S3 弹性存储卷,但这对于破解我只想将 100k 文件复制到服务器的小难题来说有点像大锤。
这是一个与让我的 Web 应用程序在虚拟服务器上运行以在本地保存文件不同的问题,这也是类似的其他 SO 问题似乎在问的问题。
欢迎任何想法。
I am using the standard fedora AMI with the LAMP stack bundled and I want to upload files onto the server from my Windows desktop.
What is the "normal" approach for this? I am not a UNIX admin by any stretch, although I am more than comfortable with FTP and the basics of a BASH shell.
As far as I can see there is no FTP server installed by default on the remote virtual machine, and I am unable to open one up at my end because of firewall restrictions. I looked at WinSCP, but before I go to the lengths of installing and configuring that I wondered what the expected means of doing this might be. In any case I don't see how WinSCP or any other FTP based tool can work without the target machine listening, which implies something like and FTP server.
Is there anything like a Windows remote desktop connection?
I could mount an S3 elastic storage volume from within EC2, but it is a bit of a sledgehammer to crack my little nut of just wanting 100k of files copied up to the server.
This is a different question to getting my web application running on the virtual server to save files locally, which is what the other SO questions in a similar vein seem to be asking.
Any ideas welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我使用putty的psftp,它使用ssh。如果你可以通过 ssh 进入盒子,那么 psftp 应该可以工作。
http://www.chiark.greenend.org.uk/~sgtatham/putty /
您首先需要使用 puttygen for psftp 将您的 pem 私钥转换为 ppk,以便使用密钥文件进行身份验证,因为据我所知,它仅使用 ppk 格式而不是 pem 格式。
I use putty's psftp, which uses ssh. If you can ssh into the box, then psftp should work.
http://www.chiark.greenend.org.uk/~sgtatham/putty/
You will first need to convert your pem private key to a ppk using puttygen for psftp to use the keyfile for authentication because it only uses ppk format and not pem format, as far as I know.
您对 WinSCP 做出了正确的选择。 SCP 基于 SSH,而不是 FTP,并且 SSH 和 SCP 是 Linux 服务器上的标准。因此,WinSCP 需要一些配置,这是最简单的。您的替代方案是安装和维护 FTP 服务器 - 还有很多工作!有与远程桌面相当的工具,但它们的设置要复杂得多。
如果您在使用密钥配置 SCP 程序时遇到问题,但您可以“shell”进入,则可以使用密码在服务器上创建一个新的 linux 用户,然后您可以使用该密码而不是密钥WinSCP 更容易。
You've made the right choice with WinSCP. SCP is based on SSH, not FTP, and SSH and SCP are standard on Linux servers. So, WinSCP takes a bit of configuration bit its the simplest. Your alternative would be to install and maintain and FTP server - a lot more work there! There are equivalents to Remote Desktop but they're way more complicated to setup.
If you're having trouble with configuring your SCP program with your key but you have the ability to "shell" in, you could create a new linux user on the server with a password, then you can use that password instead of the key in WinSCP which is easier.
SCP(以及 SFTP,就此而言)是与 FTP 完全不同的协议。数据通过 SSH 通道传输。如果您可以通过 SSH 访问虚拟机,则 SCP/SFTP 应该可以工作。
SCP (and SFTP, for that matter) is an entirely different protocol from FTP. Data is transferred over an SSH channel. If you have SSH access to your virtual machine, SCP/SFTP should work.
如果您更喜欢图形工具,请查看 S3Fox Firefox插件(我的选择),或仔细阅读此列表独立的图形S3浏览器。
If you prefer a graphical tool, have a look at the S3Fox Firefox plugin (my choice), or peruse this list of standalone graphical S3 browsers.
对于 S3,我使用 Cyberduck(在 Mac 上)和 S3Fox。对于批量上传(在脚本中),我使用 s3sync。我使用 ElasticFox 和 Amazon 的原始 ec2 工具管理 EC2 实例。
For S3 I use Cyberduck (on Mac) and S3Fox. For mass uploads (in scripts) I use s3sync. I manage EC2 Instances with ElasticFox and original ec2 Tools from Amazon.