Link to my Web server in NAT via SSH tunnel

Home PC ---- School PC(SSH Server) --- SSH Tuneel ----VM

School PC: 

  • Since it is windows, I used CopSSH 
  • Note: Execute Initial Setup with (Run as admin)
  • Modify C:/Program files/ICW/etc/sshd_config , addGatewayPorts yes

Build SSH Tunnel:
@VM $   autossh -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R :10023:localhost:22 user@SchoolPC

Access VM ssh:
ssh SchoolPC:10023 

Access VM Web Server:
(In Pietty:) Tunnel →  source port: 10005   and Destination: localhost:80
browse web through localhost:10005!!!!!