1.Linux下生成密钥
ssh-keygen的命令手册,通过”man ssh-keygen“命令:
1. 通过命令”ssh-keygen -t rsa“
2.1 通过ssh-copy-id的方式
命令: ssh-copy-id -i ~/.ssh/id_rsa.pub <romte_ip>
常见错误:
[root@test ~]# ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.91.135
-bash: ssh-copy-id: command not found //提示命令不存在
解决办法:yum -y install openssh-clients
原文
http://www.jb51.net/article/94599.htm