Technology

Setting Up a Raspberry Pi for Remote Connections

This post covers the steps to set-up a raspberry Pi for remote connections using remot3.it. I was looking for a way to connect to the Pi headlessly (no keyboard, mouse, and monitor attached) so that I could update WiFi settings depending on where the device is. This proved to be a simple and effective solution.

Step 1: setup a free account at remot3.it. Signing up is free and easy, just requiring an email, and it looks like they have a pretty good free personal-use offering.

Step 2: install the software on your Pi. Your Pi needs to already have an OS installed, and be connected to the internet via ethernet or WiFi. Then follow the steps here. They are:

Step 2a: update your package manager with: sudo apt-get update
Step 2b: download the remote.it software locally with: sudo apt-get install weavedconnectd
Step 2c: Open the installer with: sudo weavedinstaller
Step 2d: choose option 1 to sign in to your account and provide the user name and password you created in step 1.
Step 2e: enter a device name (e.g. testPi1) and select 1 to attach to a service
Step 2f: select a service. In this walkthrough we’re going to use SSH, so select 1 for SSH on port 22. Using the default port 22 is fine.
Step 2g: select 4 to exit the installer

Step 3: enable SSH. From the terminal use the command sudo raspi-config to open the configuration module.
Step 3a: select 5 Interfacing Options
Step 3b: select P2 SSH
Step 3c: select Yes to enable the SSH server
Step 3d: make sure to change the default password for user pi if you have not already (option 1 in the configuration module)

Step 5: Back on your PC, connect to the Pi remotely.
Step 5a: log-in to your remote.it account. Go to View Devices and verify your test device is there. It should look something like:
View Devices
Step 5b: click the Device Name and verify the SSH service is there. Something like:

SSH

Step 5c: click the service to get the connection details:

SSH Settings

Step 5d: open your terminal application, e.g. powershell:
Powershell
Step 5e: copy/paste the pi connection string from remote.it to the terminal:
SSH Pi
Step 5f: login and you’re connected! I use this to change the WiFi settings to connect the Pi wherever I am.

Logged In

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s