SSH 免密登录

记录 SSH 免密登录的常见步骤。

生成密钥


ssh-keygen -t ed25519 -C "me@example.com"

拷贝公钥


ssh-copy-id user@host

测试登录


ssh user@host