Installing FileZilla on Debian
To use FileZilla for remote connections, first install it on your Debian system. Open a terminal and run:
sudo apt update && sudo apt install filezilla
Verify installation with sudo dpkg -l | grep filezilla—you should see a FileZilla entry if successful.
Configuring Remote Connection in FileZilla (Client Mode)
- Open Site Manager: Launch FileZilla and click the “Site Manager” icon (or go to File > Site Manager).
- Create a New Site: Click “New Site,” name it (e.g., “Debian Remote Server”), and configure these settings:
- Protocol: Choose SFTP (recommended for security) or FTP (traditional, less secure).
- Host: Enter the remote server’s IP address or domain name.
- Port: Use 22 for SFTP (default) or 21 for FTP.
- Login Type: Select “Normal” (for username/password auth) or “Key File” (for SSH keys).
- Username/Password: Input your remote server’s credentials (for key auth, browse to your private key file).
- Connect: Click “Connect.” If successful, the right panel will display the remote server’s files, while the left shows your local files.
Setting Up FileZilla Server on Debian (For Hosting Files)
If you need to host files for others to connect to, install FileZilla Server:
- Install Server: Download the Debian package from the official site and install it:
wget https://dl3.cdn.filezilla-project.org/server/FileZilla_Server_xxx_x86_64-linux-gnu.deb sudo dpkg -i FileZilla_Server_xxx_x86_64-linux-gnu.deb - Start the Server: Enable and start the service:
sudo systemctl enable filezilla-server sudo systemctl start filezilla-server - Configure Users & Permissions:
- Edit the server config file (
/etc/filezilla/filezilla.xml) or use the FileZilla Server Interface (GUI). - Under
, add a user with permissions (read/write/delete) and a home directory:<User> <Name>remote_userName> <Password>secure_passwordPassword> <HomeDirectory>/home/remote_userHomeDirectory> <Permissions><Read>TrueRead><Write>TrueWrite>Permissions> User>
- Edit the server config file (
- Configure Passive Mode: For firewall compatibility, set a passive port range (e.g., 50000-51000) in the
section:<PassivePorts>50000-51000PassivePorts> - Adjust Firewall: Allow FTP (port 21) and passive mode ports (e.g., 50000-51000) using UFW:
sudo ufw allow 21/tcp sudo ufw allow 50000:51000/tcp sudo ufw reload - Test Connection: Use FileZilla Client to connect to your server’s IP, using the configured username/password and port.
Key Tips for Success
- Security: Prefer SFTP (SSH) over FTP (plaintext) and use SSH keys instead of passwords.
- Firewall: Ensure your Debian firewall (UFW) or router allows the necessary ports (21/22 for FTP/SFTP, passive ports for data transfer).
- Passive Mode: Critical for connections behind NAT/firewalls—configure both the server and client with matching port ranges.
以上就是关于“FileZilla在Debian的远程连接设置”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm