Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SSH into containers through Node
This allows to perform SSH'ing into containers by specifying only deal and task identifiers independing of whereever those containers are being run. This is done by proxying the traffic through local Node. The idea is to hijack to incoming TCP connection with further resolving the real endpoint of a Worker where a container is being run by deal ID using NPP with further traffic forwarding directly into it. The Worker may not be having a public IP address.
- Loading branch information
Showing
14 changed files
with
625 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package ssh | ||
|
||
import ( | ||
"github.com/sonm-io/core/insonmnia/npp" | ||
) | ||
|
||
// ProxyServerConfig specifies SSH proxy server configuration. | ||
type ProxyServerConfig struct { | ||
Addr string `yaml:"endpoint" required:"true"` | ||
NPP npp.Config `yaml:"npp" required:"true"` | ||
} |
Oops, something went wrong.