新規ユーザー追加するときに鍵の作り方を忘れていたのでまとめなおした。鍵なんて一回作ったらずっと使い回しだから、やり方とかメモしてないと忘れちゃうよね。 SSH公開鍵生成して使う。 手順は次の通り サーバーで秘密鍵・秘密鍵を作る。 公開鍵をサーバーの認証済みキーに登録する。 ログインのテスト。 Windowsに鍵を転送。 PuttyのKeygenでPutty形式変換。 poderosaの場合もPuttyのKeygen Puttyで鍵を指定する。 サーバー側での手順 debian00:~# ssh-keygen -t rsa # 1. 鍵を作成 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh
![秘密鍵・公開鍵でPuttyからSSHする方法。 - それマグで!](https://cdn-ak-scissors.b.st-hatena.com/image/square/524c5e4c99b0103dee0246ecc0e4c870a77fd200/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Ft%2Ftakuya_1st%2F20100623%2F20100623024017.jpg)