从已有的GIT仓库获取最新代码git clone url建立本地仓库,并提交至git-hub生成ssh的公钥私钥对:ssh-keygen从pc端打开生成的公钥,id_rsa.pub,复制并黏贴至git-hub的ssh-keyscd至程序文件夹,输入 git init然后输入git add .(.代表...
分类:
其他好文 时间:
2014-08-19 12:24:14
阅读次数:
212
多github帐号的SSH key切换我有两个github帐号,一个是个人所用,一个是为公司项目所用。如果是单用户(single-user),很方便,默认拿id_rsa与你的github服务器的公钥对比;如果是多用户(multi-user)如user1,user2,那么就不能用在user2的身上了,...
分类:
其他好文 时间:
2014-08-18 00:00:03
阅读次数:
313
从已有的GIT仓库获取最新代码git clone url建立本地仓库,并提交至git-hub生成ssh的公钥私钥对:ssh-keygen从pc端打开生成的公钥,id_rsa.pub,复制并黏贴至git-hub的ssh-keyscd至程序文件夹,输入 git init然后输入git add .(.代表...
分类:
其他好文 时间:
2014-08-13 18:41:56
阅读次数:
210
SSH生成id_rsa, id_rsa.pub后,连接服务器却报:Agent admitted failure to sign using the key错误。解决方法:在当前用户下执行命令:ssh-add即可解决。参考:http://blog.csdn.net/guqiwei/article/de...
分类:
其他好文 时间:
2014-08-12 16:22:54
阅读次数:
174
服务器版本redhat6.4-64首先解决权限的问题:1.ssh-keygen##如果是root用户,生成的默认目录为/root/.ssh下2个文件id_rsa(公钥)id_rsa.pub(私钥)2.cd/root/.ssh/&&chmod600id_rsa*把这2个文件修改权限,为6003.ssh-copy-id-i/root/.ssh/id_rsaroot@192.168.200.1#..
分类:
其他好文 时间:
2014-08-07 13:28:00
阅读次数:
309
经常在服务器程序(脚本)里面,或在命令行中,执行ssh,scp命令,会碰到输出密码的情况,很不方便!
如果在两台相互信任,其实步骤挺简单,假设要从主机1上执行,ssh,scp操作。
主机1:host1 用户1:user1
主机2:host2 用户2:user2
一:在主机1上执行下列操作:
1./home/user1/.ssh/ 目录下,执行: ssh-keygen –t id_rsa
$ ssh-keygen -t rsa
Generating public/private rsa key p...
分类:
其他好文 时间:
2014-08-06 22:57:22
阅读次数:
395
~/.ssh/id_rsa权限问题,造成ssh无法登陆问题解决;使用virsh 连接exsi5.0;貌似这个在vm下再虚拟vm处问题,错误信息如下;Thu Jul 31 13:25:10 2014 [DiM][I]: New VM state is ACTIVE.Thu Jul 31 13:25:1...
分类:
其他好文 时间:
2014-07-31 16:14:16
阅读次数:
386
生成密钥并复制 --- `ssh-keygen -t rsa -P ‘‘` `cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys` `chmod 600 ~/.ssh/authorized_keys` 修改SSH配置文件 --- 更改`/etc/ssh/sshd_config`中的 ``` RSAAuthentic...
分类:
其他好文 时间:
2014-07-26 03:30:17
阅读次数:
216
简单的说明一下方法:首先在本机上敲命令:ssh-keygen-tsra\生成rsa的密钥(这个命令生成一个密钥对:id_rsa和id_rsa.pub。他们默认被保存在~/.ssh/目录下。可以将id_rsa.pub改名为local_rsa.pub以免与远程主机上的id_rsa.pub重名。在生成过程中会要求输入passphrase,这个是用..
分类:
其他好文 时间:
2014-07-26 03:24:48
阅读次数:
249
[root@cent6~]#ssh-keygen-trsa-P‘‘
Generatingpublic/privatersakeypair.
Enterfileinwhichtosavethekey(/root/.ssh/id_rsa):
/root/.ssh/id_rsaalreadyexists.
Overwrite(y/n)?y
Youridentificationhasbeensavedin/root/.ssh/id_rsa.
Yourpublickeyhasbeensavedin/root/.ssh/..
分类:
其他好文 时间:
2014-07-23 21:27:26
阅读次数:
301