-
Notifications
You must be signed in to change notification settings - Fork 0
Device SSH
Ankit R Gadiya edited this page Feb 2, 2023
·
1 revision
The Devices on Rapyuta.io are generally behind the NAT Gateway. It makes it difficult to connect to them from outside the Network. In Rapyuta.io we implement various ways to communicate using Outbound connections from Devices. Rio CLI’s Device SSH is one such implementation.
The implementation uses the amazing Piping Server project. The blog post The Power of Pure HTTP explains the Piping Server and its various use-cases in detail. The CLI must do one more thing over the regular Piping Server though. It must initialize the Netcat instance on the Device that forwards data to the Device’s local SSH daemon. To do this, we use the Public Exec API exposed by the Device Manager in Rapyuta.io.