无法连接到 Azure 虚拟机上的 vsftpd
Cannot connect to vsftpd on Azure virtual machine
我在 Windows Azure (Ubuntu) 上有虚拟机。
我已经在服务器上安装了 vsftp 并在 Azure 门户中为 FTP 分配了端点。
但是当我尝试连接 FileZilla 时,出现以下错误:
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (100,66,218,25,240,15).
Command: LIST
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
这是 Azure 端点的快照:
FTP 服务器正在侦听端口 61455 以进行数据传输连接:
Response: 227 Entering Passive Mode (100,66,218,25,240,15).
240 << 8 + 15 = 61455
端点配置中不允许该端口。
您必须在端点配置中允许 FTP 服务器数据连接端口范围内的所有端口。
如果需要允许大范围的端口,可以使用 Add-AzureEndpoint
PowerShell cmdlet。
请参阅我在 Azure endpoint provisioning 上的指南。
最后,我使用了SFTP
连接。我有 SSH
个 Azure 端点。
只需使用您的 ssh
用户名和密码登录 filezilla。
Host:你的服务器IP地址
协议:SFTP:SSH 文件传输协议
用户:SSH 用户名
密码:SSH密码
尝试使用 WinSCP
然后在连接菜单下,取消勾选被动模式,
我在 Windows Azure (Ubuntu) 上有虚拟机。
我已经在服务器上安装了 vsftp 并在 Azure 门户中为 FTP 分配了端点。
但是当我尝试连接 FileZilla 时,出现以下错误:
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (100,66,218,25,240,15).
Command: LIST
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
这是 Azure 端点的快照:
FTP 服务器正在侦听端口 61455 以进行数据传输连接:
Response: 227 Entering Passive Mode (100,66,218,25,240,15).
240 << 8 + 15 = 61455
端点配置中不允许该端口。
您必须在端点配置中允许 FTP 服务器数据连接端口范围内的所有端口。
如果需要允许大范围的端口,可以使用 Add-AzureEndpoint
PowerShell cmdlet。
请参阅我在 Azure endpoint provisioning 上的指南。
最后,我使用了SFTP
连接。我有 SSH
个 Azure 端点。
只需使用您的 ssh
用户名和密码登录 filezilla。
Host:你的服务器IP地址
协议:SFTP:SSH 文件传输协议
用户:SSH 用户名
密码:SSH密码
尝试使用 WinSCP
然后在连接菜单下,取消勾选被动模式,