2024-08-17  2024-09-18    36 字  1 分钟

Ed25519算法

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

旧算法

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

设置文件权限

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys