diff options
Diffstat (limited to 'core/ssh.sh')
| -rwxr-xr-x | core/ssh.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/ssh.sh b/core/ssh.sh index c4454ae..f23d571 100755 --- a/core/ssh.sh +++ b/core/ssh.sh | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | dnf install -y git | 3 | dnf install -y git |
| 4 | 4 | ||
| 5 | echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config | 5 | grep -q 'PasswordAuthentication no' /etc/ssh/sshd_config || echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config |
| 6 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config | 6 | grep -q 'AllowTcpForwarding yes' /etc/ssh/sshd_config || echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config |
| 7 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config | 7 | grep -q 'GatewayPorts yes' /etc/ssh/sshd_config || echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config |
| 8 | echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config | 8 | grep -q 'AllowAgentForwarding yes' /etc/ssh/sshd_config || echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config |
| 9 | 9 | ||
| 10 | git clone https://git.noml.ch/keys/ ~/keys | 10 | SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| 11 | ~/keys/add-ssh-keys.sh | 11 | "$SCRIPT_DIR/../keys/add-ssh-keys.sh" |
| 12 | sudo systemctl restart sshd | 12 | sudo systemctl restart sshd |
