15 lines
309 B
Bash
Executable File
15 lines
309 B
Bash
Executable File
#!/bin/sh
|
|
|
|
chown -R $(whoami) ~/.gnupg/
|
|
find ~/.gnupg -type f -exec chmod 600 {} \;
|
|
find ~/.gnupg -type d -exec chmod 700 {} \;
|
|
|
|
chmod 700 ~/.ssh
|
|
chmod 644 ~/.ssh/known_hosts
|
|
chmod 644 ~/.ssh/config
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
chmod 644 ~/.ssh/id_ed25519.pub
|
|
|
|
eval "$(ssh-agent -s)"
|
|
ssh-add ~/.ssh/id_ed25519
|