about summary refs log tree commit diff
path: root/ssh
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:51:54 +0300
commit38bab29776950ac2364ed64195b89887717c33de (patch)
treeedaaf366a55dbe96d268019124536bc504c64e87 /ssh
chore: init HEAD master
Diffstat (limited to '')
-rw-r--r--ssh/.ssh/config17
-rwxr-xr-xssh/@install10
2 files changed, 27 insertions, 0 deletions
diff --git a/ssh/.ssh/config b/ssh/.ssh/config
new file mode 100644
index 0000000..9ea4651
--- /dev/null
+++ b/ssh/.ssh/config
@@ -0,0 +1,17 @@
+Host *
+    Compression yes
+    ControlMaster auto
+    ControlPath ~/.ssh/%r@%h:%p
+    ControlPersist 24H
+    ForwardAgent no
+    ForwardX11 no
+    ForwardX11Trusted no
+    HashKnownHosts yes
+    IdentityFile ~/.ssh/azahi_ed25519
+    ServerAliveCountMax 30
+    ServerAliveInterval 60
+    TCPKeepAlive yes
+
+Include hosts
+
+# vim: filetype=sshconfig
diff --git a/ssh/@install b/ssh/@install
new file mode 100755
index 0000000..fde0f3f
--- /dev/null
+++ b/ssh/@install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ ! -d "${HOME}/.ssh" ] && \
+    mkdir -p "${HOME}/.ssh"
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    ssh

Consider giving Nix/NixOS a try! <3