From a183b022375d731ef76be3897ae37f9300b84ffa Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Sun, 6 Apr 2025 18:53:39 +0200 Subject: [PATCH] vault backup: 2025-04-06 18:53:39 --- 2024/Github multiple users and keys.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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