summaryrefslogtreecommitdiff
path: root/core/ssh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/ssh.sh')
-rwxr-xr-xcore/ssh.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/ssh.sh b/core/ssh.sh
new file mode 100755
index 0000000..c4454ae
--- /dev/null
+++ b/core/ssh.sh
@@ -0,0 +1,12 @@
1#!/bin/bash
2
3dnf install -y git
4
5echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
6echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
7echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
8echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config
9
10git clone https://git.noml.ch/keys/ ~/keys
11~/keys/add-ssh-keys.sh
12sudo systemctl restart sshd