如何将我的 open-ssh public 密钥转换为 ssh2
How do I convert my open-ssh public key to ssh2
尝试在 Azure 中创建 Linux VM 时,我突然添加了 ssh-ed25519
:
Multiline SSH key must begin with '---- BEGIN SSH2 PUBLIC KEY ----' and end with '--- END SSH2 PUBLIC KEY ----'.
如何将我的密钥转换为兼容格式?
编辑: Azure 门户似乎无法识别 ssh-ed25519
密钥,我已联系支持人员。同时,使用备份ssh-rsa
,无需转换成SSH2就可以插上
您可以使用 ssh-keygen
将 OpenSSH public 密钥转换为 SSH2 格式,例如:
ssh-keygen -e -f ~/.ssh/id_ed25519.pub
尝试在 Azure 中创建 Linux VM 时,我突然添加了 ssh-ed25519
:
Multiline SSH key must begin with '---- BEGIN SSH2 PUBLIC KEY ----' and end with '--- END SSH2 PUBLIC KEY ----'.
如何将我的密钥转换为兼容格式?
编辑: Azure 门户似乎无法识别 ssh-ed25519
密钥,我已联系支持人员。同时,使用备份ssh-rsa
,无需转换成SSH2就可以插上
您可以使用 ssh-keygen
将 OpenSSH public 密钥转换为 SSH2 格式,例如:
ssh-keygen -e -f ~/.ssh/id_ed25519.pub