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