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


当前回答

首先Filezilla是一个FTP/SFTP客户端/服务器。为此,我们需要使用客户端。

1)客户端下载地址:https://filezilla-project.org/

2)进入AWS管理控制台,然后进入EC2。选择需要访问的实例,复制该实例的DNS或IP地址,然后粘贴到Filezilla主机名中。

下面的图片:亚马逊实例访问通过FileZilla

3)然后,输入您创建的实例的用户名,对于Amazon-ami,它将是ec2-user,对于其他操作系统,它将是不同的。然后输入密码和端口,端口为21或22。

4)然后,它会要求密钥,它是pem格式的,只需选择.pem文件,然后它会确认身份验证。单击Yes,然后完成。

注意:在EC2安全组中允许FTP访问所需的端口号21和22。

其他回答

我为此制作了一个视频教程。只是检查:

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

以上视频教程总结:

Edit (Preferences) > Settings > Connection > SFTP, Click "Add key file” Browse to the location of your .pem file and select it. 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. 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. 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.

如果你使用Cyberduck,请遵循以下步骤。

如果你有任何权限问题,请查看这篇文章。

首先Filezilla是一个FTP/SFTP客户端/服务器。为此,我们需要使用客户端。

1)客户端下载地址:https://filezilla-project.org/

2)进入AWS管理控制台,然后进入EC2。选择需要访问的实例,复制该实例的DNS或IP地址,然后粘贴到Filezilla主机名中。

下面的图片:亚马逊实例访问通过FileZilla

3)然后,输入您创建的实例的用户名,对于Amazon-ami,它将是ec2-user,对于其他操作系统,它将是不同的。然后输入密码和端口,端口为21或22。

4)然后,它会要求密钥,它是pem格式的,只需选择.pem文件,然后它会确认身份验证。单击Yes,然后完成。

注意:在EC2安全组中允许FTP访问所需的端口号21和22。

最简单直接的方法就是创建一个FTP登录。 这是一个关于stackoverflow本身的简单易懂的教程网站,如何在2分钟内完成设置… 在亚马逊云服务器上设置FTP

对于Ubuntu用户来说,有另一种不需要PuttyGen的方法来制作和设置密钥。我假设您可以通过终端连接到服务器,并希望设置FileZilla用于文件传输。

在终端执行命令:

ssh - keygen

它将提示您输入私钥和公钥文件的目标路径,默认情况下为

/ home /用户。ssh/id_rsa和/home/user/ ssh/ rsa酒吧

你可以让它保持原样。然后,打开公钥并复制其内容:

猫的. ssh / id_rsa . pub

在终端中,在服务器端,打开.ssh/authorized_keys并粘贴复制的行:

nano . ssh / authorized_keys

您可能会看到一些当前行,如“ssh-rsa AAAAB3Nz…”。没关系。简单地放置新行,并粘贴之前复制的行。

如果有人执行了所有步骤但没有成功,请确保您使用了正确的用户。我试图使用“ec2-user”,但我需要使用“ubuntu”。