0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitHubでの(SSH)Authentication/Signing Keyの設定

Posted at

CLIでの認証/署名の設定手順をメモとして書き残しておきます。あくまでも最低限動くレベルのもので、ファイル名やパスフレーズにその他色々は、それぞれ適切に設定してください。

bash
cd ~ &&\
git config --global user.name <user name> &&\
git config --global user.email <email address> &&\
git config --global user.signingkey ~/.ssh/signing-key.pub &&\
git config --global commit.gpgsign true &&\
git config --global gpg.format ssh &&\
# id_ed25519 and id_ed25519.pub are generated in ~/.ssh/
ssh-keygen -t ed25519 &&\
# signing-key and signing-key.pub are generated in ./
ssh-keygen -t ed25519 -f signing-key &&\
mv ./signing-key ./.ssh/ && mv ./signing-key.pub ./.ssh/

ローカルでのコミットをGitHubにプッシュして、Verifiedになっていれば署名にも成功しています。以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?