替换 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.