May 24, 2011

SSH login without password

產生 key

  • ssh-keygen -t rsa
    將產生的 id_rsa.pub 放到 target machine 的 .ssh/authorized_keys
  • ssh-keygen -t dsa
    將產生的 id_dsa.pub 放到 target machine 的 .ssh/authorized_keys
權限設定
  • .ssh/ is 700
  • .ssh/authorized_keys is 600
  • home 目錄的 owner 要是自己 (...)