创建密钥对:
<comment>改成自己需要的字符串
$ ssh-keygen -t ed25519 -C "<comment>"
接着全按回车使用默认生成
密钥对会生成在/home/user/.ssh/id_ed25519目录下。

参考:
创建密钥对:
<comment>改成自己需要的字符串
$ ssh-keygen -t ed25519 -C "<comment>"
接着全按回车使用默认生成
密钥对会生成在/home/user/.ssh/id_ed25519目录下。
参考: