用puttygen工具把私钥id_rsa转换成公钥id_rsa.ppk
生活随笔
收集整理的這篇文章主要介紹了
用puttygen工具把私钥id_rsa转换成公钥id_rsa.ppk
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1 前言
有時候需要ppk格式的公鑰,可以用putty來處理
2 步驟
1. 產生密鑰
可以參考Gitlab的SSH配置(linux和windows雙版本)
$ ssh-keygen -t rsa -C your@example.com -b 4096 Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): Created directory '/c/Users/Administrator/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa. Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub. The key fingerprint is: SHA256:nd6QS7KWq1234565vAzG+2VzshgL3KN3Ti7iF8mByQ your@example.com The key's randomart image is: +---[RSA 4096]----+ | | | | | E . ..o| | .oo ==| | N *+ =*| | S.+O *o*| | .=.+=.%.=.| | .o.o+.E.o | | .o..oo.o. | +----[SHA256]-----+
2. 使用puttygen轉換
保存為id_rsa.ppk,完成。然后拷貝其內容到網上設置SSH公鑰中黏貼。
總結
以上是生活随笔為你收集整理的用puttygen工具把私钥id_rsa转换成公钥id_rsa.ppk的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Protocol Buffers的应用
- 下一篇: Gre 隧道与 Keepalived