Complete gitprep-shell
|
1 |
command="ls",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAurwDPkF1gw5Nf98BhBtPKLBEQ/AdiLIJUEreaa39aWGqzi5s4WBxBP3LMvdvqpMdbnj81ivklJTdlTbKuP4EkhVaXAtB0bw1m/oHPFpp2lH772Bj7ToZQc9omW0bqpP7CtRHCBlf10RIFnhB6ugHSETo4C/esL7OQPThHYvRd8lCGTFq9/4sVd1fWbTcreyXhQA669W+w//xNWla2KnO6+4i/P15SlZfvlgwkziaUHQRZXeVJ0toKuvQRjw5XI18Q3fORnlPALAL4ZV2vUA2Nh4wQGeEkMnXVKF92h+JrXG01filfvnPZZzSnIzVMEyA5ZHV1GhOFUzsogsBKhWrOw== gitprep@www7402u.sakura.ne.jp |
2 |
|
|
3 |
# gitolite start |
|
4 |
command="/home/git/gitolite/src/gitolite-shell yuku_t", |
|
5 |
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty |
|
6 |
ssh-rsa AAAAB3NzaC1y...== yuku_t |
|
7 |
# gitolite end |
|
8 |
|
|
9 |
ssh -p55555 -i ~/tmp/id_rsa_gitprep2 59.106.185.196 |
|
10 |
|
|
11 |
|
|
12 |
ssh -p55555 -i ~/tmp/id_rsa_gitprep2 git clone ssh://gitprep@59.106.185.196:55555/home/gitprep/labo/gitprep/data/rep/kimoto/gitprep_t.git |
|
13 |
|
|
14 |
ssh -p55555 -i ~/tmp/id_rsa_gitprep2 git-upload-pack gitprep_t.git |
|
15 |
|
|
16 |
|
|
17 |
ssh -p55555 59.106.185.196 |
|
18 |
|
|
19 |
|
|
20 |
git clone ssh://gitprep@59.106.185.196:55555/gitprep_t.git |
|
21 |
|
|
22 |
|
|
23 |
���ϐ� GIT_SSH |
|
24 |
|
|
25 |
~/.ssh/config �͑�ϕ֗��ł����A Git �Ƃ͖��W�� SSH �ڑ����ɂ�Q�Ƃ����̂ŕs�s���Ȃ��Ƃ���܂��B�ʂ̕�@�Ƃ��āA GIT_SSH ���ϐ��� SSH �̃��b�p�[�X�N���v�g��w�肷�邱�Ƃ��ł��܂��B |
|
26 |
|
|
27 |
git-ssh.sh |
|
28 |
#!/bin/sh |
|
29 |
exec ssh -oIdentityFile=~/.ssh/github_id_rsa "$@" |
|
30 |
$ GIT_SSH=git-ssh.sh git push git@github.com:kyanny/hello.git master |
|
31 |
|