This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
content/notes/putty-to-ssh/index.md

20 lines
500 B
Markdown

---
title: Конвертация закрытых ключей Putty (.ppk) в OpenSSH ключи
---
Генерируем **приватный** ключ:
```bash
puttygen .ppk -O private-openssh -o id_dsa
```
Генерируем **публичный** ключ:
```bash
puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub
```
Копируем ключи и настраиваем права доступа:
```bash
mv -i ~/id_dsa* ~/.ssh
chmod 600 ~/.ssh/id_dsa
chmod 666 ~/.ssh/id_dsa.pub
```