diff options
| author | hc <hc@email.ch> | 2024-10-22 15:56:49 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2024-10-22 15:56:49 +0800 |
| commit | c629f77320049f6d1111c43eed547e9a9edf4620 (patch) | |
| tree | c0104ca057efdf6690600b6784d0f2adfc06af54 /core/ssh.sh | |
| parent | 9fd54e25e5c9dd5a13317eb64138a3f11d8ea897 (diff) | |
vim
Diffstat (limited to 'core/ssh.sh')
| -rwxr-xr-x | core/ssh.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/ssh.sh b/core/ssh.sh new file mode 100755 index 0000000..3cf2583 --- /dev/null +++ b/core/ssh.sh @@ -0,0 +1,8 @@ +#!/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 + +git clone https://git.0nom.ch/keys ~/keys +~/keys/add-ssh-keys.sh |
