From c332cf11dc0266f31eeae067ace5a9bda18122c6 Mon Sep 17 00:00:00 2001 From: Super User Date: Mon, 23 Mar 2026 19:09:37 +0800 Subject: flatten setup directory structure --- core/ssh.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 core/ssh.sh (limited to 'core/ssh.sh') 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 @@ +#!/bin/bash + +dnf install -y git + +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 +sudo systemctl restart sshd -- cgit