Skip to content

Instantly share code, notes, and snippets.

@gruckionvit
gruckionvit / multiple_ssh_setting.md
Created June 11, 2021 22:14 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'provision' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preprovision', 'provision', 'postprovision' ]
5 info lifecycle [email protected]~preprovision: [email protected]
6 info lifecycle [email protected]~provision: [email protected]
7 verbose lifecycle [email protected]~provision: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~provision: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/stephen.rayner/repos/react-sample-sigex/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
9 verbose lifecycle [email protected]~provision: CWD: /Users/stephen.rayner/repos/react-sample-sigex