From c629f77320049f6d1111c43eed547e9a9edf4620 Mon Sep 17 00:00:00 2001 From: hc Date: Tue, 22 Oct 2024 15:56:49 +0800 Subject: vim --- core/ssh.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 core/ssh.sh (limited to 'core/ssh.sh') 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 -- cgit v1.2.3-70-g09d2