解决 FileZilla 20秒连接超时问题. (SSH + sftp协议)

[简介]
常用网名: 猪头三
出生日期: 1981.XX.XX
个人网站: https://www.x86asm.org
QQ交流: 643439947
编程生涯: 2001年~至今[共17年]
职业生涯: 15年
开发语言: C/C++、80x86ASM、PHP、Perl、Objective-C、Object Pascal、C#、Python、JavaScript
开发工具: Visual Studio、Delphi、XCode、Eclipse、Android Stuido
技能种类: 逆向 驱动 磁盘 文件
研发领域: Windows应用软件安全/Windows系统内核安全/Windows系统磁盘数据安全
项目经历: 磁盘性能优化/文件系统数据恢复/文件信息采集/敏感文件监测跟踪/网络安全检测

[序言]
今日维护一个全新的服务器, 结果发现用FileZilla + SSH模式连接sftp失败, 总是提示如下2句错误.

Connection timed out after 20 seconds of inactivity
Error: Could not connect to server

[解决方案]
第一步: 修改/etc/ssh/sshd_config文件中的Subsystem sftp /usr/libexec/openssh/sftp-server 改为 Subsystem sftp internal-sftp.
第二步: 设置FileZilla的连接超时时间为99秒.

[结尾]
希望对大家有帮助.

猜你喜欢

转载自blog.csdn.net/Code_GodFather/article/details/82744357
今日推荐