summaryrefslogtreecommitdiff
path: root/core/ssh.sh
diff options
context:
space:
mode:
authorhc <hc@email.ch>2024-10-22 15:56:49 +0800
committerhc <hc@email.ch>2024-10-22 15:56:49 +0800
commitc629f77320049f6d1111c43eed547e9a9edf4620 (patch)
treec0104ca057efdf6690600b6784d0f2adfc06af54 /core/ssh.sh
parent9fd54e25e5c9dd5a13317eb64138a3f11d8ea897 (diff)
vim
Diffstat (limited to 'core/ssh.sh')
-rwxr-xr-xcore/ssh.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/ssh.sh b/core/ssh.sh
new file mode 100755
index 0000000..3cf2583
--- /dev/null
+++ b/core/ssh.sh
@@ -0,0 +1,8 @@
+#!/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
+
+git clone https://git.0nom.ch/keys ~/keys
+~/keys/add-ssh-keys.sh