From e98d60edebc988337e751e4f348381706658a0e8 Mon Sep 17 00:00:00 2001 From: Brad Clawsie Date: Sun, 28 Dec 2025 11:05:29 -0600 Subject: proper ssh signing support --- git/dotgitconfig | 9 +++++-- ssh/allowed_signers | 1 + ssh/config | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ ssh/dotsshconfig | 67 ----------------------------------------------------- 4 files changed, 75 insertions(+), 69 deletions(-) create mode 100644 ssh/allowed_signers create mode 100644 ssh/config delete mode 100644 ssh/dotsshconfig diff --git a/git/dotgitconfig b/git/dotgitconfig index d786d89..45b6318 100644 --- a/git/dotgitconfig +++ b/git/dotgitconfig @@ -16,7 +16,7 @@ [user] name = Brad Clawsie email = brad@b7j0c.org - signingkey = /home/brad/.ssh/id_ed25519.pub + signingkey = ~/.ssh/id_ed25519.pub [pull] ff = only @@ -25,7 +25,7 @@ defaultBranch = master [commit] - gpgsign = true + gpgsign = true [alias] st = status -sb @@ -34,5 +34,10 @@ [tig] main-view-date-display = no +[tig "bind"] + status = C !git commit -S + [gpg] format = ssh +[gpg "ssh"] + allowedSignersFile = ~/.ssh/allowed_signers diff --git a/ssh/allowed_signers b/ssh/allowed_signers new file mode 100644 index 0000000..f894305 --- /dev/null +++ b/ssh/allowed_signers @@ -0,0 +1 @@ +brad@b7j0c.org namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA7Mqsz1cskf1YRWaMiZUZ8226xWjyXSrFVJPREXsX70 brad@b7j0c.org diff --git a/ssh/config b/ssh/config new file mode 100644 index 0000000..3e6b9b2 --- /dev/null +++ b/ssh/config @@ -0,0 +1,67 @@ +ConnectionAttempts 1 +ForwardAgent yes +ForwardX11 no +StrictHostKeyChecking no +KeepAlive yes +AddKeysToAgent yes + +# b7j0c + +Host b7j0c + HostName b7j0c.org + User brad + Port 512 + IdentityFile ~/.ssh/id_ed25519_20230101 + IdentitiesOnly yes + SetEnv TERM=xterm-256color + +Host b7j0c-git + HostName b7j0c.org + User git + Port 512 + IdentityFile ~/.ssh/id_ed25519_20230101 + IdentitiesOnly yes + +Host sr.ht + HostName git.sr.ht + User git + IdentityFile ~/.ssh/id_ed25519_20230101 + IdentitiesOnly yes + +Host git.sr.ht + HostName git.sr.ht + User git + IdentityFile ~/.ssh/id_ed25519_20230101 + IdentitiesOnly yes + +Host github + HostName github.com + User git + IdentityFile ~/.ssh/id_ed25519_20230101 + IdentitiesOnly yes + +Host codeberg + HostName codeberg.org + User git + IdentityFile ~/.ssh/id_ed25519_20230101 + IdentitiesOnly yes + +# grokloc + +Host sr.ht-grokloc + HostName git.sr.ht + User git + IdentityFile ~/.ssh/grokloc_ed25519_20230101 + IdentitiesOnly yes + +Host github-grokloc + HostName github.com + User git + IdentityFile ~/.ssh/grokloc_ed25519_20230101 + IdentitiesOnly yes + +Host codeberg-grokloc + HostName codeberg.org + User git + IdentityFile ~/.ssh/grokloc_ed25519_20230101 + IdentitiesOnly yes diff --git a/ssh/dotsshconfig b/ssh/dotsshconfig deleted file mode 100644 index 3e6b9b2..0000000 --- a/ssh/dotsshconfig +++ /dev/null @@ -1,67 +0,0 @@ -ConnectionAttempts 1 -ForwardAgent yes -ForwardX11 no -StrictHostKeyChecking no -KeepAlive yes -AddKeysToAgent yes - -# b7j0c - -Host b7j0c - HostName b7j0c.org - User brad - Port 512 - IdentityFile ~/.ssh/id_ed25519_20230101 - IdentitiesOnly yes - SetEnv TERM=xterm-256color - -Host b7j0c-git - HostName b7j0c.org - User git - Port 512 - IdentityFile ~/.ssh/id_ed25519_20230101 - IdentitiesOnly yes - -Host sr.ht - HostName git.sr.ht - User git - IdentityFile ~/.ssh/id_ed25519_20230101 - IdentitiesOnly yes - -Host git.sr.ht - HostName git.sr.ht - User git - IdentityFile ~/.ssh/id_ed25519_20230101 - IdentitiesOnly yes - -Host github - HostName github.com - User git - IdentityFile ~/.ssh/id_ed25519_20230101 - IdentitiesOnly yes - -Host codeberg - HostName codeberg.org - User git - IdentityFile ~/.ssh/id_ed25519_20230101 - IdentitiesOnly yes - -# grokloc - -Host sr.ht-grokloc - HostName git.sr.ht - User git - IdentityFile ~/.ssh/grokloc_ed25519_20230101 - IdentitiesOnly yes - -Host github-grokloc - HostName github.com - User git - IdentityFile ~/.ssh/grokloc_ed25519_20230101 - IdentitiesOnly yes - -Host codeberg-grokloc - HostName codeberg.org - User git - IdentityFile ~/.ssh/grokloc_ed25519_20230101 - IdentitiesOnly yes -- cgit v1.2.3