summaryrefslogtreecommitdiff
path: root/core/ssh.sh
blob: c4454ae289ecdbdfc7bbed6bf4bd73a0d90608ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

dnf install -y git

echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config

git clone https://git.noml.ch/keys/ ~/keys
~/keys/add-ssh-keys.sh
sudo systemctl restart sshd