Kirin H.

SSH 客户端的默认配置文件

SSH 客户端配置文件 ~/.ssh/config

使用通配符匹配所有主机:

Host *
    IdentityFile ~/.ssh/id_ed25519
    ServerAliveInterval 15
    ServerAliveCountMax 10

采用 SSH 客户端保活,而不是服务端保活,配置起来简单一点。

#Ssh