OpenSSH Server 設定メモ 2

| | Comments (0) | TrackBacks (0)
今回はテキストパスワードによるログインを無効化し、公開鍵暗号方式によるログインを可能にする。
鍵方式によるログインの方が攻撃者の侵入を防ぎやすいからです。
これでセキュリティ的にはかなり上昇します。

初めての方は下のリンク先にあるページでも見てみるといいと思います。
Puttyで鍵交換方式によるSSH接続

(メモ)
1. Puttyで作成した公開鍵をOpenSSH形式に変換するコマンド。
  • ssh-keygen -i -f id_rsa.pub >> authorized_keys
2. 転送した公開鍵ファイル(id_rsa.pub)を忘れずに削除。
3. ターミナルエミュレーターとしてPoderosaを使う場合はPuttyで生成した秘密鍵を「ssh.com」形式へとエクスポートする必要あり。

鍵のセットアップが終わってテストログインにも成功したら再度sshd_configファイルを編集します。

1. #PasswordAuthentication yesの行をUncommentして以下のように修正。
これで秘密鍵を所持していないとログインできなくなりセキュリティが向上します。
  • PasswordAuthentication no
2. 最後に新しい設定を有効にするためSSHを再起動!
  • sudo /etc/init.d/ssh restart

0 TrackBacks

Listed below are links to blogs that reference this entry: OpenSSH Server 設定メモ 2.

TrackBack URL for this entry: http://us.ms-square.com/cgi/mt/mt-tb.cgi/61

Leave a comment


画像の中に見える文字を入力してください。

About this Entry

This page contains a single entry by Manabu published on September 21, 2008 2:43 AM.

OpenSSH Server 設定メモ 1 was the previous entry in this blog.

メールサーバー設定 1 (Postfixadmin) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.