linux ssh无密码登录

1、架构
   192.168.0.5    登录机。
   192.168.0.10   被登录机。
2、执行步骤
   (1)在192.168.0.5上执行
      #ssh-keygen -t rsa     一路回车
           在~/.ssh/目录下生一对公钥和私钥id_rsa   id_rsa.pub
       (2)把公钥
id_rsa.pub拷贝到远程登录机上
           #ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
           输入密码
           10
           Now try logging into the machine, with "ssh '[email protected]", and check in:

            .ssh/authorized_keys

            to make sure we haven't added extra keys that you weren't expecting.
           成功!

爱慕尔商城欢迎您的光临!
穿衣打扮  
城市物语

你可能感兴趣的:(linux,ssh,ssh-keygen,ssh-copy-id,休闲)