yakshaveinc / linux

software engineering for Linux projects
The Unlicense
1 stars 3 forks source link

How to init host behind NAT #13

Open abitrolly opened 5 years ago

abitrolly commented 5 years ago

Edit your GitLab name below and run on the target server.

GITLAB_NAME=abitrolly
curl -w "" https://gitlab.com/$GITLAB_NAME.keys >> ~/.ssh/authorized_keys
ssh -R $GITLAB_NAME:22:localhost:22 serveo.net

Then connect from your machine.

GITLAB_NAME=abitrolly
ssh -J serveo.net root@$GITLAB_NAME