update email

This commit is contained in:
Malin Freeborn 2022-05-17 00:23:53 +02:00
parent 86f8fca232
commit 5c33f802b7
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
3 changed files with 51 additions and 2 deletions

View File

@ -6,7 +6,7 @@ tags: [ "Documentation", "data" ]
## New Machines
> git config --global user.email *"malinfreeborn@tutamail.com"*
> git config --global user.email *"malinfreeborn@posteo.net"*
> git config --global user.name *"Malin Freeborn"*

49
data/gpg-ssh.md Normal file
View File

@ -0,0 +1,49 @@
<!--
Source:
https://ryanlue.com/posts/2017-06-29-gpg-for-ssh-auth
-->
Install `gnupg`.
Generate a new gpg key just for authentication:
> gpg2 --expert --edit-key 024C6B1C84449BD1CB4DF7A152295D2377F4D70F
Toggle options `S`, `E`, and `A` until the following output:
```
Current allowed actions: Authenticate
```
Add ssh to the gpg key agent.
> echo enable-ssh-support >> ~/.gnupg/gpg-agent.conf
This won't take effect until you restart the gpg agent, so kill it:
> gpgconf --kill gpg-agent
> gpgconf --launch gpg-agent
Use 2048 (or whatever) bits, save, and exit.
Add this to your `~/.bash_profile`:
```
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
```
> source ~/.bash_profile
Find the ssh key's keygrip with:
> gpg -k --with-keygrip
It's the one with `[A]` next to it.
Add it to `~/.gnupg/sshcontrol`.
> echo 1P0P6SA7S07Q8198414P126OR0514R3R8Q1389SP > ~/.gnupg/sshcontrol
Confirm it's added:
> ssh-add -l

View File

@ -12,7 +12,7 @@ Follow the guide.
# Encrypting a file
> gpg -r malinfreeborn@tutamail.com -e file
> gpg -r malinfreeborn@posteo.net -e file
`-r` specifies the recipient.