summaryrefslogtreecommitdiff
path: root/setup/core/ssh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup/core/ssh.sh')
-rwxr-xr-xsetup/core/ssh.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/setup/core/ssh.sh b/setup/core/ssh.sh
new file mode 100755
index 0000000..c8fb49d
--- /dev/null
+++ b/setup/core/ssh.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
+echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
+echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
+echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config
+
+git clone https://git.noml.ch/keys ~/keys
+~/keys/add-ssh-keys.sh