$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/username/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): パスワード入力して設定
Enter same passphrase again: パスワード再入力
Your identification has been saved in /c/Users/username/.ssh/id_rsa.
Your public key has been saved in /c/Users/username/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx username@Node
$ cat /c/User/username/.ssh/id_rsa.pub
ssh-rsa AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== username@Node
$ ssh -T git@github.com
Enter passphrase for key '/c/Users/username/.ssh/id_rsa': パスワード入力
Hi aquabluefish! You've successfully authenticated, but GitHub does not provide
shell access.
$ git remote add origin git@github.com:gitusername/projectname.git
$ mkdir workspace
$ cd workspace
$ git clone git@github.com:gitusername/projectname.git
Cloning into 'projectname'...
Enter passphrase for key '/c/Users/username/.ssh/id_rsa':
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 27 (delta 1), reused 27 (delta 1)
Receiving objects: 100% (27/27), 1.20 MiB | 197.00 KiB/s, done.
Resolving deltas: 100% (1/1), done.
$ git add modified.c
$ git commit -m "comment"
$ git commit -a -m "comment"
$ git status
$ git push