centos 6.4 ssh

     1   ssh-keygen -t rsa

  $ cat ~/.ssh/id_rsa.pub 》 ~/.ssh/authorized_keys

  2、更改权限

  $ chmod  600 ~/.ssh / authorized_keys

  $ chmod 700 ~/.ssh

  3、注销再登陆

  用ssh localhost再试试,OK.

4、ssh管理多个私钥

ssh-add ~/.ssh/id_rsa_server 


你可能感兴趣的:(centos 6.4 ssh)