ssh配置无密码本地登录
shell
# 生成密钥
ssh-keygen -t ed25519
# 上传公钥
ssh-copy-id -i ~/.ssh/id_ed25519 user@host
# 链接测试
ssh user@host
# 不需要密码直接登录 = 成功 ✅