Skip to content

Commit 24e791b

Browse files
committed
few changes when creating ssh keys and verified commits
1 parent cba44fa commit 24e791b

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

github/CHEATSHEET.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
## Telling Git about your signing key
44
1. Setting up your keys
5-
```
5+
```bash
66
mkdir -p ~/.gnupg/private-keys-v1.d
7+
cd ~/.gnupg/private-keys-v1.d
78
gpg --generate-key
89
```
910
Provide:
1011
* Real name:
1112
* Email address:
12-
* PassPharse
13-
```
13+
* PassPharse:
14+
15+
```bash
1416
gpg --list-secret-keys --keyid-format=long
1517
export GPG_TTY=$(tty)
1618
echo "test" | gpg --clearsign
@@ -31,7 +33,7 @@ git config -l | grep gpg
3133
git config --global commit.gpgsign true
3234
git config --global tag.gpgSign true
3335

34-
gpg --armor --export 3AA5C34371567BD2
36+
gpg --armor --export 3AA5C34371567BD2 | xclip -selection c
3537
#Copy your GPG key, beginning with -----BEGIN PGP PUBLIC KEY BLOCK----- and ending with -----END PGP PUBLIC KEY BLOCK-----.
3638
```
3739
* Add the GPG key to your GitHub account.

github/SSH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ xclip -sel clip < ~/.ssh/id_ed25519.pub
3030
```
3131

3232
4. Add your New SSH
33-
Use a name, (e.g. `ed25519_machine_OSversion`) and add it in https://github.com/settings/keys
33+
Use a name, (e.g. `ed25519_machine_OSversion`), select `authentification key` and add it in https://github.com/settings/keys
3434

3535
5. Testing your SSH connection
3636
```

0 commit comments

Comments
 (0)