Город МОСКОВСКИЙ
00:01:17

How to Download & Install PUTTY/PUTTYgen on Windows + SSH Connections

Аватар
Лекции для успешного учителя
Просмотры:
20
Дата загрузки:
09.10.2024 20:34
Длительность:
00:01:17
Категория:
Технологии и интернет

Описание

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

Рекомендуемые видео