本机 ~/.ssh/config

SSH 配置模板

合并到本机 SSH 配置,替换用户名并核验密钥。

下载 ssh_config.example

替换 YOUR_USERNAME 后合并到本机 ~/.ssh/config,不要覆盖原有配置。 使用说明 →

完整源码

templates/ssh_config.example12 行
# Merge into LOCAL ~/.ssh/config; replace YOUR_USERNAME.
# This is NOT the HPC-side GitHub SSH configuration.
Host hkust-hpc2
    HostName hpc2login.hpc.hkust-gz.edu.cn
    User YOUR_USERNAME
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
    ServerAliveInterval 60
    ServerAliveCountMax 3

# If using password login, omit IdentityFile and IdentitiesOnly.
# Keep host-key checking enabled; verify any new/changed fingerprint.
← 返回全部脚本与模板
教程导航

输入关键词,搜索教程和完整脚本。