Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(user, host string, port int, opts ...ConnectOpt) (*Client, error)
NewClient connects via ssh to host with the given user and authenticates with the given connect options.
Call client.Connect() to actually get the ssh session
func NewClientWithConnection ¶
NewClientWithConnection connects via ssh to host with the given user and authenticates with the given connect options. a already created net.Conn must be provided. see vpn.Connect howto create such a connection via tailscale VPN
Call client.Connect() to actually get the ssh session
type ConnectOpt ¶ added in v0.12.6
type ConnectOpt any
func ConnectOptOutputPassword ¶ added in v0.17.0
func ConnectOptOutputPassword(password string) ConnectOpt
func ConnectOptOutputPrivateKey ¶ added in v0.17.0
func ConnectOptOutputPrivateKey(privateKey []byte) ConnectOpt
func ConnectOptOutputWriter ¶ added in v0.12.6
func ConnectOptOutputWriter(out io.Writer) ConnectOpt
Click to show internal directories.
Click to hide internal directories.