1:运行命令 ssh-keygen -t rsa 产生秘钥 ,位于~/.ssh目录下(假设在这期间有什么提示。一路敲击enter下去,什么都不用输入) 2:运行命令 cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys 假设提示yes/no 直接输入 yes 验证s ...
分类:
其他好文 时间:
2017-05-07 18:39:44
阅读次数:
223
创立版本库 mkdir Baiducd Baidugit init SSHssh-keygen -t -rsa -C "TaylorApril947939@gmail"(在github上new SSH,内容为id_rsa.pub) 添加远程库(github上新建git仓库,选择REAMDE.md)g ...
分类:
其他好文 时间:
2017-05-06 00:54:15
阅读次数:
177
foriin‘catahost‘;dossh-copy-id-i/root/.ssh/id_rsa.pubroot@$i;doneforiin`catahost`;dossh-copy-id-i/root/.ssh/id_rsa.pub"-p2234root@$i";done
分类:
其他好文 时间:
2017-05-04 16:25:40
阅读次数:
110
配置#生成公钥、私钥。把公钥上传至githup上。
[root@compute01~]#ssh-keygen-trsa#一路回车,默认私钥在~/.ssh/id_rsa
#配置ssh代理
[root@compute01~]#cat~/.ssh/config
Hostgithub.com*.github.com
ProxyCommandconnect-proxy-Hweb-proxy.xxx.com:8080%h%p
IdentityFile~/...
分类:
其他好文 时间:
2017-05-04 16:10:56
阅读次数:
148
设置无密码登录此处设为有主机a登录到主机b 1、在主机a生成公钥 ssh-keygen -t rsa 之后有导航(其实一直回车就可以) 2、此时在主机a/home/YOURHOSTNAME/.ssh下面有一个id_rsa 和 id_rsa.pub 3、查看在主机b的/home/YOURHOSTNAM ...
分类:
其他好文 时间:
2017-05-03 13:24:08
阅读次数:
137
A免密访问B A机器操作步骤: 1.安装ssh和检查是成功 rpm –qa | grep openssh rpm –qa | grep rsync 2.生成密匙对 ssh-keygen –t rsa (遇到输入则回车键) 成功后会看到保存路径,一般为当前用户根目录下的.ssh 3.把id_rsa.p ...
分类:
其他好文 时间:
2017-04-30 18:38:52
阅读次数:
201
先复习一下设置ssh免密码操作的步骤: 进入主目录 cd 生成公钥 ssh-keygen -t rsa -P '' (注:最后是二个单引号,表示不设置密码) 然后分发公钥到目标机器 ssh-copy-id -i ~/.ssh/id_rsa.pub 用户名@对方机器IP (注意不要忘记了参数-i) 注 ...
分类:
其他好文 时间:
2017-04-27 02:44:17
阅读次数:
177
两台主机 10.5.7.107 server1 10.5.7.108 server2 两台主机检查 ~/.ssh 文件夹没有则新建 登录107机器 ssh-keygen -t rsa 一路狂按回车,最终生成(id_rsa,id_rsa.pub两个文件). 把id_rsa.pub 复制到108两台no ...
分类:
其他好文 时间:
2017-04-26 10:11:50
阅读次数:
202
1、创建自己的github用户,仓库。 2、下载git工具。 3、在现有项目下右键,git bash进入命令行模式。 a)ssh-keygen -t rsa -C "11@qq.com" 生成公钥,注意查看生成地址,使用txt打开id_rsa.pub,进入git设置公钥(settings—ssh a ...
分类:
其他好文 时间:
2017-04-25 00:45:18
阅读次数:
177
git公钥修改(公钥在c盘user下面的.ssh/id_rsa.pub里):我修改用的是:gitGUI工具(http://www.cnblogs.com/banzhuan/p/6544951.html) 命令是: ssh-keygen -t rsa -C "xxxxxxxxxx@163.com" / ...
分类:
移动开发 时间:
2017-04-24 23:14:42
阅读次数:
253