summaryrefslogtreecommitdiff
path: root/setup/core/ssh.sh
diff options
context:
space:
mode:
authorhc <hc@email.ch>2025-06-25 19:40:43 +0800
committerhc <hc@email.ch>2025-06-25 19:40:43 +0800
commitccdde5f4424836fc8e9cc98c204510fed9612e70 (patch)
treedf1500f00b2f0b32b8729732454585c318b51110 /setup/core/ssh.sh
parentd6eb567da3e6d2e64ebf22adf1fc6d21c47090f8 (diff)
merged setup and contaienrs
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