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

Ed25519算法

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

旧算法

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

设置文件权限

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

除另有声明外本博客文章均采用 知识共享 (Creative Commons) 署名 4.0 国际许可协议 进行许可转载请注明原作者与文章出处