公開鍵認証に変更

サーバ側
$ ssh-keygen -t rsa
$ mv ~/.ssh/id_rsa.pub authorized_keys
$ chmod 600 authorized_keys

クライアント(win)側

  1. id_rsaをコピー
  2. putty_gen でid_rsaをロード.秘密鍵を保存.
  3. pageant に鍵登録.(これでパスフレーズの入力の手間がはぶける)

接続を確認後,サーバでパスワード認証を無効にする
$ vi /etc/ssh/sshd_config
#PasswordAuthentication yes
PasswordAuthentication no