Screen

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


First install ngrok.

$ cd ~
$ sudo wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
$ sudo unzip ngrok-stable-linux-arm.zip

go to https://dashboard.ngrok.com/auth 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: https://ngrok.com/docs or screen man page: https://linux.die.net/man/1/screen

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