Documentation
¶
Index ¶
- Constants
- func NewExecutor(executorConfig *config.ConfigExecutorStruct, extraOption string) (executor.Executor, error)
- type Ssh
- func (s *Ssh) Buttons() (buttons []string)
- func (s *Ssh) Cancel()
- func (s *Ssh) Chan() <-chan string
- func (s *Ssh) Clear()
- func (s *Ssh) Close()
- func (s *Ssh) Exec(ctx context.Context, cmdline string, isRaw bool) (output chan string)
- func (s *Ssh) History() []string
- func (s *Ssh) Name() string
- func (s *Ssh) Open() error
- func (s *Ssh) Write(p []byte) (n int, err error)
Constants ¶
View Source
const USAGE = `option: [flags] [user@]hostname [command]
Flags (Most are same as OpenSSH 'ssh' command)
* -p int : SSH server port (Default 22)
* -R string, -L string, -D string : Set up port forwarding
* -T : Disable pseudo-terminal allocation
* -i string : The identity (private key) (default to ~/.ssh/id_*)
* -o string : SSH option
* --ts-insecure : Accept unknown ssh server
E.g.: /addexecutor myssh ssh example.com
By default it only allows public-key authentication and uses OpenSSH ~/.ssh/id_* identity files.` + "\n" +
"To use password authentication, type '/setsecret <name> <secret>' to set the password. " +
"The public key of the ssh server will be checked against ~/.ssh/known_hosts file."
Variables ¶
This section is empty.
Functions ¶
func NewExecutor ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.