Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NilSSHProxyServer ¶
type NilSSHProxyServer struct{}
type ProxyServerConfig ¶
type ProxyServerConfig struct { Addr string `yaml:"endpoint" required:"true"` NPP npp.Config `yaml:"npp" required:"true"` }
ProxyServerConfig specifies SSH proxy server configuration.
type SSHIdentity ¶ added in v0.4.15
func NewSSHIdentity ¶ added in v0.4.15
func NewSSHIdentity(key *ecdsa.PrivateKey) (*SSHIdentity, error)
func ParseSSHIdentity ¶ added in v0.4.15
func ParseSSHIdentity(v string) (*SSHIdentity, error)
func (*SSHIdentity) String ¶ added in v0.4.15
func (m *SSHIdentity) String() string
func (*SSHIdentity) Verify ¶ added in v0.4.15
func (m *SSHIdentity) Verify() error
type SSHProxyServer ¶
type SSHProxyServer struct {
// contains filtered or unexported fields
}
func NewSSHProxyServer ¶
func NewSSHProxyServer(cfg ProxyServerConfig, privateKey *ecdsa.PrivateKey, credentials *xgrpc.TransportCredentials, market blockchain.MarketAPI, log *zap.SugaredLogger) (*SSHProxyServer, error)
NewSSHProxyServer constructs a new SSH proxy server that will serve SSH connections in remote containers by smart-forwarding traffic via itself.
The server requires SSH agent running on the host system with appropriate keys loaded in it. While running it will NOT modify the data within the agent.
Example of external usage: "ssh <DealID>.<TaskID>@<host> -p <port>".
Click to show internal directories.
Click to hide internal directories.