📜  如何在 linux 中将 ppk 转换为 pem - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:46.712000             🧑  作者: Mango

代码示例1
1.install putty-tools with the following command:
    sudo apt-get install putty-tools
2.Now convert your .ppk file to .pem using the following command:
    puttygen yourkey.ppk -O private-openssh -o yourkey.pem
3.Set the proper permission to use the .pem file with following command:
    chmod 400 yourkey.pem
4.Connect to you server using the following command
    ssh -i yourkey.pem serverusername@server-ip