Putty:
Configuration -> Connection -> "Seconds between keepalives (0 to turn of)"
* 点击左侧的 Session菜单
* 点击选择框中的 "Default Settings"
* 点击 Save 按钮
WinSCP 需要在各个连接的高级属性中设置:
Session -> Site -> Site Manager 中, 选中一个Session, 点击 Edit 按钮, 点击Advance 按钮,
然后 Connection -> Keepalives -> "sending of null SSH packets"
PS: 让WinSCP的配置文件保存在当前目录的方法:
Options -> Perference -> Storage -> Configuration storage -> INI file
这样的好处是: 1, 可以方便的同步到不同的电脑上, 2, 可以直接编辑配置文件, 修改多个session的属性.