Search code examples
google-cloud-platformgoogle-cloud-iot

Google Cloud IoT Core, SSH into devices


I've been using Google Cloud's IoT Core for some time and the need to SSH into devices as come up. Since we do BtoB it is mainly for support and debugging purposes. I was wandering if the service can provide me with the external IP of the device or anything that could help me establish a SSH connection.

Thanks in advance !


Solution

  • SSH into devices as come up

    Device state is for storing the current status for your device. This could include the device IP among any other metadata that you would want shared between the device and the Cloud.

    Assuming that you have access to the device and it's in your registry, you could store a state message that you can later retrieve for the device.

    If you wanted to "trigger" retrieving the device state you could send a telemetry message - which creates a PubSub message - to then update any persistent store (e.g. Cloud SQL, BigQuery, etc) you're using to track online devices.