- 履歴一覧
- 差分 を表示
- ソース を表示
- 履歴 を表示
- サーバ管理/RSA公開鍵認証でsshする へ行く。
- 1 (2011-01-31 (月) 13:09:28)
- 追加された行はこの色です。
- 削除された行はこの色です。
*手順 [#ec964c36] **/etc/ssh/sshd_config [#w0caaeae] ***RSA公開鍵認証を有効化する [#ybbaec40] RSAAuthentication yes **sshdを設定する [#q60be34c] -/etc/ssh/sshd_config --RSA公開鍵認証を有効化する RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys ***rootでのログインを不可にする [#qb30a312] --rootでのログインを不可にする PermitRootLogin no ***パスワード認証を不可にする [#xe279cc3] --パスワード認証を不可にする RhostsRSAAuthentication no PasswordAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no **sshdをリブートする [#h152ada0] # /etc/init.d/sshd restart **鍵を作成する [#h05fdb2e] $ cd $ mkdir .ssh $ chmod 700 .ssh $ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/<ユーザ名>/.ssh/id_rsa): (ここでそのままリターン) Enter passphrase (empty for no passphrase): (ここでパスワードを入力) Enter same passphrase again: (ここでパスワードを再入力) $ cd $ cd .ssh $ chmod 600 * $ cat id_rsa.pub >> authorized_keys $ rm id_rsa.pub *参考 [#ba42234f] -http://www.atmarkit.co.jp/flinux/rensai/linuxtips/432makesshkey.html -http://gentoo.reichsarchiv.jp/item/17