ubuntu
home-pc
sudo apt-get install autossh
autossh -M 10900 -fN -o "PubkeyAuthentication=yes" \
-o "StrictHostKeyChecking=false" \
-o "PasswordAuthentication=no" \
-o "ServerAliveInterval 90" \
-o "ServerAliveCountMax 3" \
-R 192.168.0.92:10022:localhost:22 \
xds@192.168.0.92
transfer-pc : xds@192.168.0.92
vim /etc/ssh/sshd_config
add
GatewayPorts clientspecified
sudo /etc/init.d/ssh restart
sudo netstat -nap | grep 10022
test
ssh -p 10022 yeshen@192.168.0.92