#author("2017-05-04T01:50:12+00:00","default:yusami","yusami")
#author("2023-10-22T09:48:45+00:00;2017-05-04T01:50:12+00:00","default:hotate","hotate")
#contents
&tag(ssh, コマンド);
&tag(ssh,コマンド);

* 設定 [#o4ee9260]
** パスワードを使用しないでログインする [#abd6f0d3]
+ DSA キーを生成する。
 $ ssh-keygen -t dsa
+ 公開キーをリモートホストにコピーする。
 $ scp ~/.ssh/id_dsa.pub foo@bar.local
+ リモートホストにログインし、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
+ ログイン動作を確認する。
 $ ssh foo@bar.local


* 関連 [#d1933ead]
#related

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS