博客 / 列表

FengShao - This service run ssh remote port forwarding

# This service run ssh remote port forwarding(https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding#Remote_Port_Forwarding) # it open a tcp port on remote host which usually on cloud, forwardin

SSH

FengShao - 根據連接的 wifi 自動切換 /etc/hosts

#!/bin/bash # # this is a NetworkManager dispatcher script, use this to switch IPs of hosts in /etc/hosts # usage: # chmod 700 /home/shaofeng/bin/switch_hosts.dispatcher # chown root:root /home/shaofe

Ubuntu