設定

パスワードを使用しないでログインする

  1. DSA キーを生成する。
    $ ssh-keygen -t dsa
  2. 公開キーをリモートホストにコピーする。
    $ scp ~/.ssh/id_dsa.pub foo@bar.local
  3. リモートホストにログインし、authorized_keysファイルを生成する。
    $ ssh foo@bar.local
    remote$ mkdir .ssh
    remote$ chmod 700 .ssh/
    remote$ cd .ssh/
    remote$ touch authorized_keys
    remote$ chmod 600 authorized_keys
    remote$ cat ~/id_dsa.pub >>authorized_keys
    remote$ rm ~/id_dsa.pub
    remote$ logout
  4. ログイン動作を確認する。
    $ ssh foo@bar.local

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS