Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[git] ssh key signing #88

Open
nguyenvulong opened this issue Aug 23, 2024 · 0 comments
Open

[git] ssh key signing #88

nguyenvulong opened this issue Aug 23, 2024 · 0 comments

Comments

@nguyenvulong
Copy link
Owner

ssh-agent one liner

pkill ssh-agent && eval $(ssh-agent) && ssh-add ~/.ssh/id_rsa && ssh-add -l

git config for ssh key signing

Configure git as below

[email protected]
user.name=Long Nguyen-Vu
user.signingkey=/path/to/.ssh/id_rsa.pub
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
gpg.format=ssh
gpg.ssh.allowedsignersfile=/path/to/.config/git/allowed_signers # points to your public key

For example

git config --global --list
git config --global gpg.format ssh
git config --global user.signingkey `your_pub_key`

See more here:

github/docs#34387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant