These days in Iran, the Global internet is blocked. just we access the internal internet.
So I have to connect to a server in Iran (Ubuntu 20), Then connect to the second server in another country. (VMESS Method)
In the Iran server, I use this command to connect to the second server via Putty
ssh -o GatewayPorts=true -L 80:0.0.0.0:80 root@188.165.117.138
It works and I can connect my client's VPN software to the Iran server. So I can access the internet.
But if I close the Putty, the connection will be lost.
How can I make this connection permanent? How to connect with the second server even after closing putty?