如何使用 ssh-keygen 实用程序生成 rsa-sha2-256 密钥?

ram*_*ria 2 ssh openssh rsa ssh-keys ssh-keygen

我想使用 ssh-keygen 实用程序生成 rsa-sha2-256 ssh 密钥对。您能分享相同的命令吗?

对于 ssh-rsa 来说,它是ssh-keygen -t rsa

Nea*_*eal 5

You can use the command:

$ ssh-keygen -t rsa-sha2-256 -b 2048
Run Code Online (Sandbox Code Playgroud)

PS: Maybe you need to upgrade Openssh version.