两台机器之间建立信任关系的步骤: 1. 在机器1上root用户执行ssh-keygen命令,生成建立安全信任关系的证书,直接Enter [root@CentOS64-x64 ~]# ssh-keygen -b 1024 -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): //不需要输入内容Created directory '/root/
两台linux之间建立信任关系,实现免密码远程登录或数据上传 1.执行ssh-keygen命令,生成建立安全信任关系的证书: linux1上:执行命令 ssh-keygen -t rsa 在程序提示输入时的单个地方都直接回车(无证书密码) [shenping@192.168.2.1:.ssh]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/hom