解决也很简单,在执行 ssh 命令的时候,多加一个参数即可,如下:
ssh -p 2200 -o ServerAliveInterval=60 [email protected] #服务器 8.8.8.8 的远程端口号为2200,增加标红的参数