summaryrefslogtreecommitdiff
path: root/core/ssh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/ssh.sh')
-rwxr-xr-xcore/ssh.sh12
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
3dnf install -y git 3dnf install -y git
4 4
5echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config 5grep -q 'PasswordAuthentication no' /etc/ssh/sshd_config || echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
6echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config 6grep -q 'AllowTcpForwarding yes' /etc/ssh/sshd_config || echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
7echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config 7grep -q 'GatewayPorts yes' /etc/ssh/sshd_config || echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
8echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config 8grep -q 'AllowAgentForwarding yes' /etc/ssh/sshd_config || echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config
9 9
10git clone https://git.noml.ch/keys/ ~/keys 10SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
11~/keys/add-ssh-keys.sh 11"$SCRIPT_DIR/../keys/add-ssh-keys.sh"
12sudo systemctl restart sshd 12sudo systemctl restart sshd