「putty.exe」で秘密鍵と公開鍵を生成して、SSHアクセスを試みる方法は以前行ったが、今回は、Linux上で鍵を生成する。
①RSA暗号方式の鍵を作成(因みにDSA暗号方式の場合「-t dsa」と入力)
$ ssh-keygen -t rsa
②.sshディレクトリに秘密鍵(id_rsa)と公開鍵(id_rsa.pub)を作成
Generating public/private rsa key pair.
Enter file in which to save the key (/home/nori/.ssh/id_rsa): ←[Enter]キーを押す
Enter passphrase (empty for no passphrase): ←パス入力(無くてもよい)
Enter same passphrase again: ←同じパス入力(無くてもよい)
Your identification has been saved in /home/mobile/.ssh/id_rsa.
Your public key has been saved in /home/mobile/.ssh/id_rsa.pub.
The key fingerprint is:
f9:81:b6:c7:8f:b9:aa:3e:0e:c6:bd:35:19:a1:1e:06 mobile@hogehoge
③「authorized_keys」ファイル作成
$ mv id_rsa.pub authorized_keys ←ファイル名を変更
$ chmod 600 authorized_keys ←パーミッションを変更
④「id_rsa」ファイルをどうにかしてダウンロードし、PuTTYgenを起動
⑤「PuTTYgen」画面が開いたら、[ファイル]→[秘密鍵の読み込み]を押下
⑥DLした「id_rsa」ファイルを指定
⑦読み込みに成功した旨のメッセージが出たら「秘密鍵を保存」ボタンを押下
これでアクセス可能になります。
The shape of the system that overflows in the world is equal to the "knowhows" that parties concerned of each industry have.
People who create the system need high-ranking "knowhows" further.
I want to become ..high-ranking "knowhows".. handlers' help.
2010/11/22
登録:
コメントの投稿 (Atom)
-
using Excel = Microsoft.Office.Interop.Excel; /// Excelオブジェクト Excel.Application oXls; /// ワークブックコレクション Excel.Workbook oWBook = this.oXl...
-
リンクでgoogleカレンダーへ予定を追加すした、忘れそうなのでメモ ○Javascriptでの記述例 var text = "買い物"; var details = "新春バーゲンセール"; var location= ...
-
Androidのアプリ開発を行うために行った開発環境の構築手順についてメモします。 作業時点(2012.04.24)での最新と思われるもので構築しました。 ・環境 OS: Windows7 64bit ・入れたもの JDK Standard Edition ...
0 件のコメント:
コメントを投稿