温馨提示×

ubuntu里filezilla如何共享

小樊
46
2026-10-09 22:27:40
栏目: 智能运维

你这个问题可能有两种理解,我分别说明一下,方便你对照:


一、在 Ubuntu 上使用 FileZilla 连接并“共享/传输”文件

(最常见情况:用 FileZilla 当 FTP/SFTP 客户端)

1. 安装 FileZilla

sudo apt update
sudo apt install filezilla

2. 连接服务器(共享文件给别人或下载)

  • 打开 FileZilla
  • 主机:sftp://服务器IP 或 ftp://服务器IP
  • 用户名 / 密码
  • 端口:SFTP 用 22,FTP 用 21
  • 点“快速连接”

✅ 左边是本地 Ubuntu,右边是远程服务器
✅ 拖拽文件即可“共享/上传/下载”


二、在 Ubuntu 上搭建 FTP 服务,让别人用 FileZilla 连你(你共享文件给别人)

1. 安装 FTP 服务(vsftpd)

sudo apt install vsftpd

2. 配置

sudo nano /etc/vsftpd.conf

常见配置:

anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES

3. 重启服务

sudo systemctl restart vsftpd
sudo systemctl enable vsftpd

4. 别人用 FileZilla 连你

  • 主机:你的 Ubuntu IP
  • 协议:FTP / SFTP
  • 用户名:你的 Ubuntu 用户名
  • 密码:你的用户密码

三、如果只是“Ubuntu 之间共享文件”(不一定要 FTP)

更简单的方式:

  • SFTP(FileZilla 直接连)
  • Samba(Windows 风格共享)
  • NFS(Linux 之间)

如果你能补充一句:

是「我用 FileZilla 连别人」还是「别人用 FileZilla 连我」?

我可以给你更精确的步骤。

0 踩