summaryrefslogtreecommitdiff
path: root/core/ssh.sh
diff options
context:
space:
mode:
authorSuper User <root@p.noml.ch>2026-03-23 19:09:37 +0800
committerSuper User <root@p.noml.ch>2026-03-23 19:09:37 +0800
commitc332cf11dc0266f31eeae067ace5a9bda18122c6 (patch)
treee4934d0f83aa1c7138e9b22efea97d5bf67ad905 /core/ssh.sh
parentdea4663f14bcb1703aa616ad05172667e452e701 (diff)
flatten setup directory structure
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