【问题标题】:Need help troubleshooting FTP problem on Ubuntu Linux需要帮助解决 Ubuntu Linux 上的 FTP 问题
【发布时间】:2013-01-26 09:50:56
【问题描述】:

我正在桌面上通过 VMWare 将 Ubuntu 作为来宾操作系统运行。它是来自 Turnkey Linux 的虚拟设备。我一直在与 FTP 斗争一段时间。我已经安装了 ProFTPd。有一次,我可以使用 filezilla 从桌面 FTP 进入,但无法安装 joomla,因为 joomla 应用程序无法 ftp 进入 localhost,这是 linux 上安装过程中的一个步骤。

我认为 ftp 服务甚至没有运行,因为我没有看到任何在端口 21 上的监听。

root@lamp:~# sudo netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:12320                 *:*                     LISTEN
tcp        0      0 *:12321                 *:*                     LISTEN
tcp        0      0 *:12322                 *:*                     LISTEN
tcp        0      0 localhost:mysql         *:*                     LISTEN
tcp        0      0 *:www                   *:*                     LISTEN
tcp        0      0 localhost:smtp          *:*                     LISTEN
tcp        0      0 *:https                 *:*                     LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
udp        0      0 *:12321                 *:*
udp        0      0 192.168.3.20:ntp        *:*
udp        0      0 localhost:ntp           *:*
udp        0      0 *:ntp                   *:*
udp6       0      0 fe80::20c:29ff:feee:ntp [::]:*
udp6       0      0 ip6-localhost:ntp       [::]:*
udp6       0      0 [::]:ntp                [::]:*

我的下一步是什么?如果我发出启动命令,则没有任何变化。

这是我的 proftpd.conf 文件

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                         on

ServerName                      "Debian"
ServerType                      inetd
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayChdir                    .message true
ListOptions                     "-l"

DenyFilter                      \*.*/

# Use this to jail all users in their homes
# DefaultRoot                   ~

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell             off

【问题讨论】:

  • 您是否尝试关闭 IPv6?
  • 它还在,我刚刚添加了主机名,这很有帮助。

标签: linux ubuntu


【解决方案1】:

如果您想通过 FTP 从您的桌面到您的来宾操作系统,反之亦然,您必须安装 FTP 并在两端运行。在您的来宾 Ubuntu 中,确保您启动 proftpd ,例如

/etc/init.d/proftpd start

在你的本地做同样的事情。此外,请确保您正确配置了您的虚拟机。 ping 他们并确保他们能看到对方。

【讨论】:

  • 不确定我是否理解.. 我有其他 linux 客户操作系统,我可以从我的桌面 FTP 进入。不确定我是否理解需要在我的 Windows 桌面上运行 FTP 服务器?我的来宾操作系统有一个静态 IP 并且在桥接模式下运行。
  • root@lamp:/etc/proftpd# /etc/init.d/proftpd start ProFTPd 警告:无法在独立模式和 inetd/xinetd 模式下启动。检查您的配置。 root@lamp:/etc/proftpd#
【解决方案2】:

我在以下论坛帖子的帮助下想通了...

http://www.howtoforge.com/forums/showthread.php?t=12972

首先在proftpd.conf文件中将“服务器类型”从“inetd”改为“standalone”。

检查 /etc/hosts 文件并将其更新为以下内容:

127.0.0.1 本地主机 192.168.0.100 ocram

以下几行适用于支持 IPv6 的主机

::1 ip6-localhost ip6-loopback ocram fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts

【讨论】:

    【解决方案3】:

    不要使用过时的 FTP 系统,而是使用 SFTP。

    安装 OpenSSH 服务器:

    sudo apt-get install openssh-server
    

    然后从 FileZilla SFTP 到您的虚拟机。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-13
      • 1970-01-01
      相关资源
      最近更新 更多