[root@lml7uattest1 ~]# git --version git version 1.8.3.1 [root@lml7uattest1 ~]# ls -al ~/.ssh ls: 无法访问/root/.ssh: 没有那个文件或目录 [root@lml7uattest1 ~]# mkdir ~/.ssh [root@lml7uattest1 ~]# ls -al ~/.ssh 总用量 4 drwxr-xr-x. 2 root root 6 3月 8 18:01 . dr-xr-x---. 3 root root 4096 3月 8 18:01 .. [root@lml7uattest1 ~]# chmod 700 ~/.ssh [root@lml7uattest1 ~]# ssh-keygen -t rsa -C "hzb123@qq.com" Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 59:56:f9:de:ba:d9:98:17:4e:29:85:d3:4c:96:57:48 hzb123@qq.com The key's randomart image is: +--[ RSA 2048]----+ | .oE.+| | .. .+.| | o .* .| | + o.+ | | S .o..| | ..+.| | +..| | .*.| | =o.| +-----------------+ [root@lml7uattest1 ~]#
git 安装:
[root@lml7uattest1 ~]# yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker 已加载插件:fastestmirror