diff options
| author | Super User <root@p.noml.ch> | 2026-03-23 19:09:37 +0800 |
|---|---|---|
| committer | Super User <root@p.noml.ch> | 2026-03-23 19:09:37 +0800 |
| commit | c332cf11dc0266f31eeae067ace5a9bda18122c6 (patch) | |
| tree | e4934d0f83aa1c7138e9b22efea97d5bf67ad905 /core/ssh.sh | |
| parent | dea4663f14bcb1703aa616ad05172667e452e701 (diff) | |
flatten setup directory structure
Diffstat (limited to 'core/ssh.sh')
| -rwxr-xr-x | core/ssh.sh | 12 |
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 | |||
| 3 | dnf install -y git | ||
| 4 | |||
| 5 | echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config | ||
| 6 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config | ||
| 7 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config | ||
| 8 | echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config | ||
| 9 | |||
| 10 | git clone https://git.noml.ch/keys/ ~/keys | ||
| 11 | ~/keys/add-ssh-keys.sh | ||
| 12 | sudo systemctl restart sshd | ||
