git配置ssh密钥
如果主机(当前登录用户)之前没有git账号,即添加第一个git账号,并配置ssh密钥时,
按照如下的步骤:
1 cd ~/.ssh
2 ssh-keygen -t rsa -C 'liulian@gmail.com'
3 cat id_rsa.pub
4 拷贝公钥到git服务器上
5 测试:git clone
git@git.host....
分类:
其他好文 时间:
2015-06-25 21:17:12
阅读次数:
115
scp异地备份A主機1.用oracle用戶登入:192.17.28.52.產生公鑰與私鑰:id_rsa為私鑰,id_rsa.pub為公鑰cd/home/oracle/.ssh--要確保.ssh文件夾,其它用戶或用戶組沒有W寫的權限,否則將無效.[oracle@ytdbbackup.ssh]$ssh-keygen-trsa--有提示默認回車就OK3.將公鑰復制給要免密碼的..
分类:
其他好文 时间:
2015-05-27 16:07:59
阅读次数:
224
1.检查是否安装$git --version2.配置$git config --global user.name "name"$git config --global user.email "email@xxx.com"3.创建SSH$ssh-keygen -t rsa -C "email@xxx....
分类:
其他好文 时间:
2015-05-21 12:09:51
阅读次数:
152
背景:有A、B两台CentOS6.2系统;A:192.168.12.128;B:192.168.12.133;目标:实现A、B设备相互无需密码登陆;过程:一、登陆A设备:#cd/root/.ssh/#ssh-keygen-trsa生成秘钥(id_rsa;id_rsa.pub),过程直接空格;#cpid_rsa.pubauthorized_keys#chmod600authorized_keys#scp..
分类:
其他好文 时间:
2015-05-18 13:09:12
阅读次数:
127
背景:有A、B两台CentOS6.2系统;A:192.168.12.128;B:192.168.12.133;目标:实现A、B设备相互无需密码登陆;过程:一、登陆A设备:#cd/root/.ssh/#ssh-keygen-trsa生成秘钥(id_rsa;id_rsa.pub),过程直接空格;#cpid_rsa.pubauthorized_keys#chmod600authorized_keys#scp..
分类:
其他好文 时间:
2015-05-18 13:09:02
阅读次数:
122
record save here first[root@hadoop .ssh]# ssh-keygen -t rsa -P ''Generating public/private rsa key pair.Enter file in which to save the key (/root/.ss...
分类:
其他好文 时间:
2015-03-12 00:45:58
阅读次数:
184
准备:2台机器,ip分别为:192.168.0.195192.168.1.210目的:通过195ssh远程访问210.无需输入密码1、首先在195上生成密钥对。#cd /root/.ssh#ssh-keygen -t rsaGenerating public/private rsa key pair...
分类:
系统相关 时间:
2015-01-29 13:58:40
阅读次数:
268
一、创建ssh:打开terminal,键入以下命令:$cd~/.ssh
$ssh-keygen-trsa-Cxx@yy.com然后一路回车即可,查看可发现生成名为id_rsa.pub的文件,可用vim打开复制里面的密钥。二、访问www.github.com,添加ssh:登陆github,选择AccountSettings-->SSHPublicKeys添加sshTitle:..
分类:
系统相关 时间:
2015-01-15 01:56:27
阅读次数:
209
转自:http://haitao.iteye.com/blog/1744272ssh配置 主机A:10.0.5.199主机B:10.0.5.198需要配置主机A无密码登录主机A,主机B先确保所有主机的防火墙处于关闭状态。在主机A上执行如下: 1. $cd ~/.ssh 2. $ssh-keygen....
分类:
系统相关 时间:
2015-01-06 21:15:55
阅读次数:
187
Login remote server without typing password with ssh....
分类:
其他好文 时间:
2014-11-11 22:49:58
阅读次数:
281