メモし忘れてた。
valvallow@ubuntu ~/temp $ cat ~/temp/git_ssh/work
#!/bin/sh
exec ssh -o User=valvallow -o IdentityFile=/home/valvallow/.ssh/work/id_rsa "$@"
valvallow@ubuntu ~/temp $ export GIT_SSH="/home/valvallow/temp/git_ssh/work"
valvallow@ubuntu ~/temp $ mkdir test && cd test
valvallow@ubuntu ~/temp/test $ git clone valvallow@server:/repos/test-git.git
Cloning into test-git...
Enter passphrase for key '/home/valvallow/.ssh/work/id_rsa':
remote: Counting objects: 44, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 44 (delta 21), reused 0 (delta 0)
Receiving objects: 100% (44/44), 782.50 KiB | 666 KiB/s, done.
Resolving deltas: 100% (21/21), done.
参考
0 件のコメント:
コメントを投稿