SSH 配置生成器
生成 ~/.ssh/config 中的 SSH 连接配置项。
SSH 主机列表
配置多个主机条目,支持跳板机 (ProxyJump)、显式密钥路径与 Keepalive 参数。
将下载的条目合并到 ~/.ssh/config 中,并执行 chmod 600 ~/.ssh/config 限制权限。此处仅填写密钥路径,无需提供私钥内容。Keepalive 设为 0 可禁用心跳探测。
使用以下命令连接: ssh bastion
~/.ssh/config
Host bastion
HostName 192.0.2.10
User deploy
Port 22
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
ServerAliveInterval 60
ServerAliveCountMax 3
9 行176 字节config