How to Access your Raspberry Pi Outside Your Home Network via SSH Using Screen and Ngrok on Linux

First install ngrok.

$ cd ~
$ sudo wget
$ sudo unzip

go to to get auth info (need to sign up for a free account to get one)

$ ./ngrok authtoken <YOUR_AUTH_TOKEN>

Then install screen

$ sudo apt-get update
$ sudo apt-get install screen

Then run ngrok with screen and leave running

$ screen bash
$ ./ngrok tcp 22
$ ctrl-a <release> ctrl-d
$ screen -list
$ screen -r
$ exit

Connect via ssh — See ngrok docs: or screen man page:

Read More

You're up and running!

Next you can update your site name, avatar and other options using the _config.yml file in the root of your repository (shown below).

Read More