diff --git a/2024/Github multiple users and keys.md b/2024/Github multiple users and keys.md index feb1d46..04a9e33 100644 --- a/2024/Github multiple users and keys.md +++ b/2024/Github multiple users and keys.md @@ -2,7 +2,7 @@ For pyrotechny.eu the user account `pyrotechny-eu` and custom SSH key is used. W ``` $ mkdir ~/.ssh && chmod 700 ~/.ssh -$ ssh-keygen -t ecdsa -b 521 -f $HOME/.ssh/id_ecda_pyrotechny_eu +$ ssh-keygen -t ecdsa -b 521 -P "" -f $HOME/.ssh/id_ecdsa_pyrotechny_eu ``` `.ssh/config`: @@ -11,7 +11,7 @@ $ ssh-keygen -t ecdsa -b 521 -f $HOME/.ssh/id_ecda_pyrotechny_eu Host gh_pyrotechny Hostname github.com User git - IdentityFile ~/.ssh/id_ecda_pyrotechny_eu + IdentityFile ~/.ssh/id_ecdsa_pyrotechny_eu ``` `.git/config`: @@ -22,4 +22,7 @@ local /Users/jerry/src/github.com/xor-gate/pyrotechny.eu (fetch) local /Users/jerry/src/github.com/xor-gate/pyrotechny.eu (push) origin gh_pyrotechny:pyrotechny-eu/pyrotechny.eu.git (fetch) origin gh_pyrotechny:pyrotechny-eu/pyrotechny.eu.git (push) -``` \ No newline at end of file +``` + +Rewrite remote: +`git remote set-url origin "gh_pyrotechny:pyrotechny-eu/pyrotechny.eu.git"` \ No newline at end of file