> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hologram.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Device tunneling for beginners

> Create an inbound Spacebridge tunnel to a device using a Hologram SIM.

This guide shows how to create an inbound Spacebridge tunnel to a device (e.g., Raspberry Pi) connected with a Hologram SIM. We will be using a Raspberry Pi in this example, but you can securely tunnel into any device that gives you port level access.

## Create a secure device tunnel

<Steps>
  <Step title="Ensure the device is online">
    First, make sure your end device has an open data session. Using a Raspberry Pi, you have a variety of choices on how to do that, for example ModemManager + NetworkManager, ChatScript, or the tool of your preference.
  </Step>

  <Step title="Establish the tunnel">
    Follow the SSH tunneling instructions to establish the tunnel. If you've already uploaded your keys (required once), then only you will only need to create the tunnel.

    <Card title="Establish a secure Spacebridge tunnel" href="/guides/communication/establish-a-secure-spacebridge-tunnel-to-a-device-using-ssh" horizontal />
  </Step>

  <Step title="Connect over SSH and close the tunnel">
    Once your tunnel is set up you can SSH into the device. In this case, it is a Raspberry Pi.

    ```bash theme={null}
    ssh pi@127.0.0.1 -p 5000
    ```

    <Frame>
      <img src="https://mintcdn.com/hologram-b29df2a6/gBXuuJ66IPyI_nhw/images/secure-tunneling/secure-tunnel-example.png?fit=max&auto=format&n=gBXuuJ66IPyI_nhw&q=85&s=ce18c16d6fe03ffbc0a311a84d4b5b75" alt="Secure tunnel using Spacebridge example" width="1060" height="575" data-path="images/secure-tunneling/secure-tunnel-example.png" />
    </Frame>
  </Step>

  <Step title="Close the tunnel using `Ctrl+C`" />
</Steps>

## Related actions

<Card title="Enable/disable tunneling keys via API" href="/guides/communication/enable-and-disable-device-tunneling-keys-using-the-rest-api" horizontal />

<Card title="View tunneling keys via API" href="/guides/communication/view-device-tunneling-keys-using-the-rest-api" horizontal />
