在 CentOS 上让 FileZilla 自动登录
一 前置说明
二 图形界面配置站点并保存密码
三 使用密钥实现免密自动登录 SFTP(推荐)
ssh-keygen -t ed25519 -o -a 100 -C "you@example.com"ssh-keygen -t rsa -b 4096 -o -a 100 -C "you@example.com"ssh user@host "mkdir -p ~/.ssh && chmod 700 ~/.ssh"cat ~/.ssh/id_ed25519.pub | ssh user@host "cat >> ~/.ssh/authorized_keys"ssh user@host "chmod 600 ~/.ssh/authorized_keys"四 配置文件方式自动登录与备份
mkdir -p ~/.config/filezilla<Servers>
<Server>
<Host>ftp.example.com</Host>
<Port>21</Port>
<Protocol>FTP - File Transfer Protocol</Protocol>
<LogonType>Normal</LogonType>
<User>your_username</User>
<Pass>your_password</Pass>
<SavePassword>1</SavePassword>
<PassiveMode>1</PassiveMode>
<EncryptMethod>Use explicit FTP over TLS if available</EncryptMethod>
</Server>
</Servers>
cp ~/.config/filezilla/filezilla.xml{,.bak}chmod 600 ~/.config/filezilla/filezilla.xml。五 常见问题与排查