Linux - GIT
2015-11-14 13:31
686 查看
Overview
#apt-get install git-coreHow to push/pull repos without password
On server
git@debian:~$ ssh - keygen - t rsaGenerating public / private rsa key pair.
Enter file in which to save the key(/ home / git / .ssh / id_rsa) :
Enter passphrase(empty for no passphrase) :
Enter same passphrase again :
Your identification has been saved in / home / git / .ssh / id_rsa.
Your public key has been saved in / home / git / .ssh / id_rsa.pub.
The key fingerprint is :
7e : 2e : 1d : f4 : 01 : d1 : ac : 95 : e4 : 99 : 80 : cc : 8b : 53 : 5d : 60 git@debian
The key's randomart image is:
+ -- - [RSA 2048]---- +
| o oEBo. |
| = .oo = o |
| o . ++ |
| o.o . |
| .S. . . |
| . . . |
| .... |
| .o. |
| .. |
+---------------- - +
git@debian:~$ cd.ssh
git@debian:~/ .ssh$ ls
id_rsa id_rsa.pub
git@debian:~/ .ssh$ cat id_rsa.pub >> authorized_keys
git@debian:~/ .ssh$ cat authorized_keys
git@debian:~/ .ssh$ chmod 600 authorized_keys
On client
$ scp git@192.168.2.171:/home/git/.ssh/id_rsa ~/.ssh/$ cd ~/.ssh/
$ chmod 600 id_rsa
相关文章推荐
- Linux开启ftp服务
- Linux - SSH
- Linux diff命令
- linux的测试题
- Linux 设置新创建目录或文件的默认权限
- Hadoop完全分布式集群搭建手记(CentOS6.7+Hadoop2.6手把手胸贴胸详细版)
- java开发需要知道的一些linux命令
- linux服务器访问windows共享文件
- Linux 搭建vsftpd服务器-实战操作
- 浏览器linux终端交互工具--tty.js
- selenium API和使用(二)
- selinium API和使用(一)
- linux进程通信-有名管道
- Linux 下Ftp的搭建
- linux进程间的通信-无名管道
- linux下 火狐浏览器 默认语言更改为中文
- Linux挂载U盘-实战操作
- linux下ifconfig,service等命令不能直接使用
- Linux中ftp连接530错误的解决方法
- linux设置FTP技巧