Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AuthKeyPassword auth by Password AuthKeyPassword = "password" // AuthKeyKey auth by key AuthKeyKey = "key" // AuthKeyCert auth by cert AuthKeyCert = "cert" // AuthKeyPkcs11 auth by pkcs11 AuthKeyPkcs11 = "pkcs11" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthKey ¶ added in v0.6.13
type AuthKey struct { // auth type: // - password // - agent // - key // - cert // - pkcs11 Type string // auth type value: // - key(path) // ex.) ~/.ssh/id_rsa // - cert(path) // ex.) ~/.ssh/id_rsa.crt // - pkcs11(libpath) // ex.) /usr/local/lib/opensc-pkcs11.so Value string }
AuthKey define auth key.
type PipeSet ¶ added in v0.6.13
type PipeSet struct {
// contains filtered or unexported fields
}
PipeSet is pipe in/out set struct.
type Run ¶ added in v0.5.0
type Run struct { ServerList []string Conf conf.Config // Mode value in // - shell // - cmd // - pshell Mode string // tty use (-t option) IsTerm bool // parallel connect (-p option) IsParallel bool // not run (-N option) IsNone bool // x11 forwarding (-X option) X11 bool // use or not-use local bashrc. // IsNotBashrc takes precedence. IsBashrc bool IsNotBashrc bool // enable/disable print header in command mode EnableHeader bool DisableHeader bool // local/remote Port Forwarding PortForwardMode string // L or R PortForwardLocal string PortForwardRemote string // Dynamic Port Forwarding // set localhost port num (ex. 11080). DynamicPortForward string // Exec command ExecCmd []string // contains filtered or unexported fields }
Run running info.
func (*Run) CreateAuthMethodMap ¶ added in v0.6.13
func (r *Run) CreateAuthMethodMap()
CreateAuthMethodMap Create ssh.AuthMethod, into r.AuthMethodMap.
func (*Run) CreateSSHConnect ¶ added in v0.6.13
CreateSSHConnect return *sshlib.Connect this vaule in ssh.Client with proxy.
func (*Run) PrintSelectServer ¶ added in v0.6.13
func (r *Run) PrintSelectServer()
PrintSelectServer is printout select server. use ssh login header.
func (*Run) SetupSSHAgent ¶ added in v0.6.13
func (r *Run) SetupSSHAgent()
SetupSSHAgent setup SSH agent.
Click to show internal directories.
Click to hide internal directories.