SSH

SSH Tunnel

socks5 via ssh
ssh -N -D 1080 {you_ssh_name} -vvv
port mapping via ssh
ssh -NCPf {your_ssh_name} -L 3306:{your_server}:3306

Auto SSH

  • installment
    • sudo apt install autossh
  • setting
    • sudo vi /etc/systemd/system/autossh.service
    • config
  • systemctl
    • sudo systemctl enable —now autossh
 
 
上一篇
PVE
下一篇
DNS
Loading...