diff options
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 | ||
