我想将我的 OpenSSH 私钥转换为 RSA

问题描述 投票:0回答:1

我使用了这个命令,但我收到错误消息 -

```shell
ssh-keygen -p -N "" -m pem -f /path/to/key

错误:

Key has comment '[email protected]'
Saving key "/Users/abc/Desktop/integ/test-data.txt" failed: Permission denied

我想先转换为 RSA,然后再转换为 Base64 以使用此命令获取日志字符串:

```shell
base64 -i /path/to/key -o /out/path
shell ssh base64 rsa openssh
1个回答
0
投票

我能够通过以下方式解决这个问题:

chmod 600 /path/to/key

之后我使用上面给出的命令进行了 Base64 转换

© www.soinside.com 2019 - 2024. All rights reserved.