From 4dfe4d6b2332aa64c0a399efbd8509b7913cfbcf Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 15 May 2022 12:27:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D1=83=D1=8E=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/putty-to-ssh/index.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 notes/putty-to-ssh/index.md diff --git a/notes/putty-to-ssh/index.md b/notes/putty-to-ssh/index.md new file mode 100644 index 0000000..76eadca --- /dev/null +++ b/notes/putty-to-ssh/index.md @@ -0,0 +1,20 @@ +--- +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 +``` \ No newline at end of file