报错:

Network errorSoftware caused connection abort

1. 在PuTTY的Connection项目中设定"Sending of null packets to keep session active" 也就是每隔几秒传送一个 null packet 让 session不会 timeout .

2. 启用 sshd host 的 /etc/ssh/sshd_config 设定值: TCPKeepAlive yes .