摘要: //安装SSH[root@localhost /]# sudo yum install ssh//生成密钥[root@localhost /]# ssh-keygen(可以一路回车)生成下面两个文件:/root/.ssh/id_rsa/root/.ssh/id_rsa.pub[root@localhost .ssh]# cd /root/.ssh///实际情况是把公钥复制到另外一台机器上,并且写入到另外一台机器上的authorized_keys文件中[root@localhost .ssh]# cat ./id_rsa.pub>>./authorized_keys[root@loc 阅读全文
posted @ 2012-08-12 00:06 远哥 阅读(2616) 评论(1) 推荐(1) 编辑