ssh免密登录 发表于 2020-03-25 更新于 2025-06-17 分类于 linux 使用 ssh-keygen 生成密钥对 123# ssh-keygen -o -t rsa -b 4096 -C "[email protected]"# ed25519 加密算法运算速度更快ssh-keygen -t ed25519 -C "[email protected]" 使用 ssh-copy-id 将公钥发送至目标主机 1ssh-copy-id -i ~/.ssh/id_ed25519.pub user@host 使用 ssh 免密登录 ssh user@host