There is such a team, establishing SSH tunnel:
/usr/bin/ssh -D LocalIP:1080 -i aws.pem [email protected]
You want the tunnel to start automatically before the user logs in as a service.
I put in the rc.local before exit 0 the following:
/usr/bin/screen -d-m /usr/bin/ssh -D LocalIP:1080 -i aws.pem [email protected]
And if I just run this command in the console, ssh in the background Krinitsa.
But when restarting does not work, screen -list says that sessions are not.
Help plz, I don't understand what I'm doing wrong.