產生ssh key
$ ssh-keygen -t rsa
將ssh key,複製到~/.ssh
$ ~/.ssh/id_rsa_activehacker
改變ssh key權限
$ chmod 400 id_rsa_activehacker
$ cd ~/.ssh/
$ touch config
#activehacker account
Host github.com-activehacker
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_activehacker
$ ssh-keygen -t rsa
將ssh key,複製到~/.ssh
$ ~/.ssh/id_rsa_activehacker
改變ssh key權限
$ chmod 400 id_rsa_activehacker
$ cd ~/.ssh/
$ touch config
#activehacker account
Host github.com-activehacker
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_activehacker
沒有留言:
張貼留言