Starts an ngrok TCP tunnel and notifies you of the URL. Perfect for automated remote SSH connections.
Copy this into a Raspberry Pi and include starter.sh in your bootup script; Place the Pi in any remote place, give it an internet connection, and you can SSH into it from home.
- Run
sudo apt-get install gnome-terminal at-spi2-core
- Create an account on ngrok.com and on Slack as well.
- Save the
auth-token
that you got from ngrok.com. - Clone this repository to your home directory (
/home/USER/
), cd intoRemoteSSH
and execute./ngrok authtoken <auth-token>
- Create an incoming webhook on your Slack account and obtain the URL. More here - https://api.slack.com/incoming-webhooks
- Copy the Slack URL to
starter.sh
, on line 7. - Run
sudo bash starter.sh
. You should get the TCP URL and Port on Slack.
Run ssh user@<IP> -p <PORT>
to gain access to the remote device.
If port 4040 doesn't work, replace with port 4041 and try. This must be done on line 6 of starter.sh
Requires Python 2.7 to work. ngrok credits go to Alan Shreve - @inconshreveable.