Documentation ¶
Index ¶
- Variables
- func ClientConfig(kc Keychain, user string) *ssh.ClientConfig
- func DialTCPJumpHosts(ctx context.Context, address string, jhosts ...JumpHost) (net.Conn, error)
- func DirectTCPIP(ctx context.Context, transport net.Conn, jhost JumpHost) (net.Conn, error)
- func DiscardNewChannels(nchans <-chan ssh.NewChannel)
- func ReadKeychain(privateKeyFile, knownHostsFile string) (*keychain, error)
- type JumpHost
- type Keychain
- type ReverseProxy
- type ReverseProxyListener
- type ReverseProxyListenerAddr
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ClientConfig ¶
func ClientConfig(kc Keychain, user string) *ssh.ClientConfig
func DialTCPJumpHosts ¶
Dials to the given address and proceeds to jump. The resulting net.Conn's Close() propagates closing of all intermediate connections. TODO: ctx is respected except for golang.org/x/crypto/ssh calls.
func DirectTCPIP ¶
func DiscardNewChannels ¶
func DiscardNewChannels(nchans <-chan ssh.NewChannel)
Types ¶
type JumpHost ¶
type Keychain ¶
A Keychain holds one private key and a relation from hosts to trusted public keys. A Keychain's methods may be called concurrently.
type ReverseProxy ¶
type ReverseProxy struct {
// contains filtered or unexported fields
}
type ReverseProxyListener ¶
type ReverseProxyListener struct {
// contains filtered or unexported fields
}
func (*ReverseProxyListener) Accept ¶
func (ln *ReverseProxyListener) Accept() (net.Conn, error)
func (*ReverseProxyListener) Addr ¶
func (ln *ReverseProxyListener) Addr() net.Addr
func (*ReverseProxyListener) Close ¶
func (ln *ReverseProxyListener) Close() error
type ReverseProxyListenerAddr ¶
type ReverseProxyListenerAddr struct {
// contains filtered or unexported fields
}
func (*ReverseProxyListenerAddr) Network ¶
func (addr *ReverseProxyListenerAddr) Network() string
func (*ReverseProxyListenerAddr) String ¶
func (addr *ReverseProxyListenerAddr) String() string
Click to show internal directories.
Click to hide internal directories.