[~]$ cd .ssh [~/.ssh]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/Users/atsushi/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/atsushi/.ssh/id_rsa. Your public key has been saved in /Users/atsushi/.ssh/id_rsa.pub.
[~/.ssh]$ mv id_rsa id_rsa.github [~/.ssh]$ mv id_rsa.pub id_rsa.github.pub [~/.ssh]$ chmod 600 id_rsa.github.pub
[~/.ssh]$ cat config identityFile ~/.ssh/id_rsa.app.example.com identityFile ~/.ssh/id_rsa.hondou.homedns.org identityFile ~/.ssh/id_rsa.github
/.ssh/config への登録
HOST github.com User git HostName github.com IdentityFile ~/.ssh/id_rsa.githubこれで、この設定が
$ git clone git@github.com:kagyuu/ANTLR4Exam.gitで使われるようになる
[~/.ssh]$ ssh git@github.com The authenticity of host 'github.com (204.232.175.90)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,204.232.175.90' (RSA) to the list of known hosts. PTY allocation request failed on channel 0 Hi kagyuu! You've successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed.うまくいかないようなら
$ ssh git@github.com -i ~/.ssh/config/id_rsa.githubを試してみる。これでうまくいくようなら .ssh/config が間違っているので修正してリトライ
[~/NetBeansProjects]$ cd maven-swap-plugin [~/NetBeansProjects/maven-swap-plugin]$ ls README.md
[~/NetBeansProjects]$ cp -r maven-swap-plugin(original)/* maven-swap-plugin [~/NetBeansProjects]$ cd maven-swap-plugin [~/NetBeansProjects/maven-swap-plugin]$ ls README.md pom.xml src target
[NetBeans] ---(Commit)---> [Local] ---(Push)---> [Github] <--(Update)---- <--(Pull)----
つたなくても英語で書かなきゃダメ・・・だよねぇ