How to convert SSH keypairs generated using PuTTYgen (Windows) into key-pairs used by ssh-agent and Keychain (Linux)

前端 未结 9 1325
抹茶落季
抹茶落季 2020-11-22 14:25

I\'ve generated key pairs using PuTTYgen and been logging in using Pageant, so that I have to enter my pass-phrase only once when my system boots.

How do I achieve

9条回答
  •  [愿得一人]
    2020-11-22 15:24

    sudo apt-get install putty
    

    This will automatically install the puttygen tool.

    Now to convert the PPK file to be used with SSH command execute the following in terminal

    puttygen mykey.ppk -O private-openssh -o my-openssh-key
    

    Then, you can connect via SSH with:

    ssh -v user@example.com -i my-openssh-key
    

    http://www.graphicmist.in/use-your-putty-ppk-file-to-ssh-remote-server-in-ubuntu/#comment-28603

提交回复
热议问题