diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-08 18:26:10 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-08 18:26:10 -0500 |
| commit | 8c0a193e163d59a77f85b05ea8a09e7666ed80a6 (patch) | |
| tree | 60cd0e0c3e9fb2e986d3dd3dd096e44d367bc745 /dotfiles/system | |
| parent | 9f24c4c00e8e97eab995b75aecd92c4090822e49 (diff) | |
adding ssh files
Diffstat (limited to 'dotfiles/system')
| -rw-r--r-- | dotfiles/system/.ssh/config | 5 | ||||
| -rw-r--r-- | dotfiles/system/.ssh/decrypt_ssh | 1 | ||||
| -rw-r--r-- | dotfiles/system/.ssh/set_perms | 7 | ||||
| -rw-r--r-- | dotfiles/system/.ssh/ssh.tar.gz.gpg | bin | 0 -> 543 bytes |
4 files changed, 13 insertions, 0 deletions
diff --git a/dotfiles/system/.ssh/config b/dotfiles/system/.ssh/config new file mode 100644 index 0000000..673fffb --- /dev/null +++ b/dotfiles/system/.ssh/config @@ -0,0 +1,5 @@ +ControlMaster auto +ControlPath ~/.ssh/%r@%h:%p +IdentityFile ~/.ssh/id_ed25519 +ServerAliveCountMax=30 +ServerAliveInterval=5 diff --git a/dotfiles/system/.ssh/decrypt_ssh b/dotfiles/system/.ssh/decrypt_ssh new file mode 100644 index 0000000..8d1f3e3 --- /dev/null +++ b/dotfiles/system/.ssh/decrypt_ssh @@ -0,0 +1 @@ +gpg --decrypt ssh.tar.gz.gpg | tar -zxf - diff --git a/dotfiles/system/.ssh/set_perms b/dotfiles/system/.ssh/set_perms new file mode 100644 index 0000000..9927ebd --- /dev/null +++ b/dotfiles/system/.ssh/set_perms @@ -0,0 +1,7 @@ +#!/bin/sh +# sets permissions for ssh folders and files + +cd "$HOME" +chmod 700 "$HOME"/.ssh +chmod 600 "$HOME"/.ssh/* +chmod 644 -f "$HOME"/.ssh/*.pub "$HOME"/.ssh/authorized_keys "$HOME"/.ssh/known_hosts "$HOME"/.ssh/config diff --git a/dotfiles/system/.ssh/ssh.tar.gz.gpg b/dotfiles/system/.ssh/ssh.tar.gz.gpg Binary files differnew file mode 100644 index 0000000..6f5a864 --- /dev/null +++ b/dotfiles/system/.ssh/ssh.tar.gz.gpg |
