使用 Filezilla 和 SFTP 连接到 Amazon EC2 文件目录 [英] Connect to Amazon EC2 file directory using Filezilla and SFTP

查看:23
本文介绍了使用 Filezilla 和 SFTP 连接到 Amazon EC2 文件目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个 AWS EC2 实例,并且我希望能够使用 FileZilla 以尽可能简单和直接的方式将文件上传到服务器目录.

解决方案

我为此创建了一个视频教程.只需检查:

使用 FileZilla 和 SFTP 连接到 Amazon EC2 文件目录,视频教程

以上视频教程总结:

  1. 编辑(首选项)> 设置> 连接> SFTP,点击添加密钥文件"
  2. 浏览到 .pem 文件的位置并选择它.
  3. 将出现一个消息框,询问您是否允许将文件转换为 ppk 格式.单击是,然后为文件命名并将其存储在某处.
  4. 如果新文件显示在密钥文件列表中,则继续下一步.如果没有,则单击添加密钥文件..."并选择转换后的文件.
  5. 文件 > 站点管理器使用以下参数添加新站点:

    Host:您的 EC2 实例的公有 DNS 名称,或服务器的公有 IP 地址.

    协议:SFTP

    登录类型:普通

    用户:来自文档: "对于 Amazon Linux,默认用户名是 ec2-user.对于 RHEL5,用户名通常是 root,但也可能是 ec2-user.对于 Ubuntu,用户名是 ubuntu.对于 SUSE Linux,用户名为 root.对于 Debian,用户名为 admin.否则,请咨询您的 AMI 提供商.">

    按连接按钮 - 如果已禁用密码保存,系统将提示您将登录类型更改为询问密码".说确定",连接时,在密码提示下按确定"而不输入密码以继续进行对话框.

    注意: FileZilla 会自动确定要使用的密钥.如上所述导入后,您无需指定密钥.

如果您使用 Cyber​​duck,请遵循 this.

如果您有任何权限问题,请查看这篇帖子.

I have created an AWS EC2 Instance and I want to be able to upload files to the server directory using FileZilla in the simplest and most straightforward fashion possible.

解决方案

I've created a video tutorial for this. Just check:

Connect to Amazon EC2 file directory using FileZilla and SFTP, Video Tutorial

Summary of above video tutorial:

  1. Edit (Preferences) > Settings > Connection > SFTP, Click "Add key file"
  2. Browse to the location of your .pem file and select it.
  3. A message box will appear asking your permission to convert the file into ppk format. Click Yes, then give the file a name and store it somewhere.
  4. If the new file is shown in the list of Keyfiles, then continue to the next step. If not, then click "Add keyfile..." and select the converted file.
  5. File > Site Manager Add a new site with the following parameters:

    Host: Your public DNS name of your EC2 instance, or the public IP address of the server.

    Protocol: SFTP

    Logon Type: Normal

    User: From the docs: "For Amazon Linux, the default user name is ec2-user. For RHEL5, the user name is often root but might be ec2-user. For Ubuntu, the user name is ubuntu. For SUSE Linux, the user name is root. For Debian, the user name is admin. Otherwise, check with your AMI provider."

    Press Connect Button - If saving of passwords has been disabled, you will be prompted that the logon type will be changed to 'Ask for password'. Say 'OK' and when connecting, at the password prompt push 'OK' without entering a password to proceed past the dialog.

    Note: FileZilla automatically figures out which key to use. You do not need to specify the key after importing it as described above.

If you use Cyberduck follow this.

Check this post if you have any permission issues.

这篇关于使用 Filezilla 和 SFTP 连接到 Amazon EC2 文件目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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