Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is an alias for ssh.Client
func Dial ¶
Dial creates a new ssh.Client with sensible defaults
Example ¶
package main import ( "github.com/matthewmueller/ssh" ) func main() { // Dial a server client, err := ssh.Dial("vagrant@127.0.0.1:2222") if err != nil { panic(err) } defer client.Close() err = ssh.Exec(client, "ls -al") if err != nil { panic(err) } }
type ClientConfig ¶
type ClientConfig = ssh.ClientConfig
func Configure ¶
func Configure(userHost string) (*ClientConfig, error)
Configure creates a new *ClientConfig based on sensible defaults. This method is fairly error-resistent and intended for advanced use cases.
Click to show internal directories.
Click to hide internal directories.