If you have a PuTTY .ppk format private key and want to use it with the built-in OpenSSH on Mac on the command line or in scripts, you can use the following commands.
First, install PuTTY for Mac using brew install putty or port install putty (see below). This will also install the command-line version of puttygen, the PuTTY key generator tool.
Then, use the following command to convert the .ppk format private key to a standard PEM format private key:
puttygen privatekey.ppk -O private-openssh -o privatekey.pem
Make sure permissions on the private key file are set properly. It should only be readable by the user that owns it.
chmod go-rw privatekey.pem
You can now use the key for logins from scripts and command line with:
ssh -i privatekey.pem user@hostname
Example I want to connect to 18.223.194.236 from my MAC
ssh -i odoo.pem ubuntu@18.223.194.236
dont forget to subscribe :
[ Ссылка ]#_=_
![](https://s2.save4k.ru/pic/w4UqdL9emRw/maxresdefault.jpg)