Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rainly/7f4af6872f31b007059558e00020f97b to your computer and use it in GitHub Desktop.

Select an option

Save rainly/7f4af6872f31b007059558e00020f97b to your computer and use it in GitHub Desktop.
vps上部署ftp+xcrc供beyondcompare远程人工备份文件
sudo apt-get install libssl-dev
git clone https://github.com/proftpd/proftpd.git
cd proftpd
./configure --with-modules=mod_digest #开启这个模块可以支持xcrc远程快速比较
make
sudo make install
sudo vi /usr/local/etc/proftpd.conf
#在"Port 21"下面加上:
SocketBindTight on #因为通过kcptun通道走, 不需要监听外网ip, 只要127.0.0.1即可
DefaultAddress 127.0.0.1
PassivePorts 10021 10022 #客户端都在防火墙后的, 只能被动模式, 而被动模式必须开单独的端口, 而且必须开两个以上
#这三行
sudo proftpd
#用kcptun把10021, 10022, 21映射到本地
#用beyond compare里的ftp passive mode连接
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment