基本可以参考上文,补充几点:
- 990端口不是必须的
- 14747端口本来是给ftp admin用的。本来默认就是只能本地配置,如果不开放远程,不需要用。文中用它来做ftp passive mode下server指定client连接执行指令用的端口,实际上可以用一个范围,比如50000-50255之类的。
- 这个范围除了azure network incoming rule之外,vm本身的系统防火墙incoming rule也要加。还有配置到fileZilla的passive mode setting里。缺一不可,否则能连上但是无法执行指令。
- don’t forget Passive Mode Settings’ Retrieve External Ip Address from.
- don’t forget the outbound rule for port 21, it’s crucial to keep the FTP connection alive.