1
2
3
4
5
6
7
8
9
10
11
12
13
| echo "judge::20:::::/home/judge:/bin/sh:" | sudo adduser -G wheel -f -
sudo mkdir /home/judge/.ssh
curl -sL https://nasa.cs.nctu.edu.tw/sa/2022/nasakey.pub | sudo tee /home/judge/.ssh/authorized_keys
sudo ssh-keygen -l -f /home/judge/.ssh/authorized_keys
sudo pkg install -y wireguard
# /usr/local/etc/wireguard/wg0.conf
sudo chown root:wheel /usr/local/etc/wireguard/wg0.conf
sudo chmod 600 /usr/local/etc/wireguard/wg0.conf
sudo service wireguard enable
sudo sysrc wireguard_interfaces="wg0"
sudo service wireguard start
mtr 10.113.18.254
|