把连接信息收进一个别名
在本地 ~/.ssh/config 写入以下配置,将三个大写字段换成实例详情中的实际值。IdentityFile 指向你本地已有的私钥文件;尚未创建密钥时,可先执行右侧的生成命令。
Host armshell-dev
HostName NODE_IP
User NODE_USER
Port SSH_PORT
IdentityFile ~/.ssh/armshell_ed25519
IdentitiesOnly yes
ServerAliveInterval 30
ServerAliveCountMax 3
保存后用 ssh armshell-dev 连接。若主机指纹变更,先确认实例是否重新交付,不要直接删除记录后继续登录。