

This should be key file that goes with the. Replace spacebridge.key with whatever private key you are using. In this case, port 22 is the port on the device, and port 5000 is the local port being forwarded. You can see in this command where you would replace the link ID with your own ID. SSH tunneling, also known as SSH port forwarding, is how SSH tunnels network traffic through application ports from the localhost - the computer physically. The command below will open up the tunnel.

You can find this on the Dashboard by clicking on the plus sign next to the SIM number.
#Ssh tunnel iot code
In the code below, replace " ~APIKEY~" with your Hologram API key.
#Ssh tunnel iot password
You'll see a prompt asking if you want to put a password on the key. Use ssh-keygen to generate a SSH key-pair:īash ssh-keygen -f spacebridge.key -b 4096.If you already have an SSH key-pair that you'd like to use, skip to step 2. You only need to complete this section the first time you're setting up the tunnel on this computer. Generate a SSH key and upload to the Hologram API

These instructions are for Linux with OpenSSH and assume that you've already enabled tunneling for your device in the dashboard (covered in the section above). In environments where a GUI application isn't appropriate, you can use these standard protocols to open a secure tunnel directly. The officially supported Spacebridge client is a convenient wrapper around Hologram API calls and an SSH client. Tunneling without the Spacebridge desktop client With Spacebridge, you can send inbound traffic to any port on the device. Hologram provides a service called Spacebridge that allows you to create secure authenticated tunnels to send data to a device with a Hologram SIM card connected to the cellular network.
