summaryrefslogtreecommitdiff
path: root/setup/core/ssh.sh
blob: 362903ada259f1fce40b38787caa895af759f441 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

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/.git ~/keys
~/keys/add-ssh-keys.sh