1. 在Ubuntu上安装FileZilla
打开终端(快捷键Ctrl+Alt+T),通过以下命令安装FileZilla:
sudo apt updatesudo apt install filezilla2. 准备远程Ubuntu服务器(确保SFTP可用)
SFTP基于SSH协议,需先确认服务器已安装并配置SSH服务:
sudo apt install openssh-serversudo systemctl start ssh && sudo systemctl enable ssh/etc/ssh/sshd_config):PermitRootLogin yes(允许root登录,生产环境建议设为without-password或prohibit-password)和PasswordAuthentication yes(允许密码登录),修改后重启SSH:sudo systemctl restart ssh。3. 在FileZilla中配置远程服务器连接
192.168.1.100或example.com);ubuntu、root)和密码。4. 连接到远程服务器
点击站点管理器中的连接按钮,FileZilla将尝试建立连接:
/home/username);5. 文件管理与传输操作
Ctrl+U(上传)、Ctrl+D(下载)。6. 断开与安全建议
ufw)允许SSH端口(sudo ufw allow 22);常见问题排查
sudo systemctl status ssh)、防火墙是否放行端口;chmod 755 /path/to/directory)。