Documentation
¶
Index ¶
Constants ¶
View Source
const ( AUTHKEY_PASSWORD = "password" AUTHKEY_AGENT = "agent" AUTHKEY_KEY = "key" AUTHKEY_CERT = "cert" AUTHKEY_PKCS11 = "pkcs11" )
View Source
const SSH_AUTH_SOCK = "SSH_AUTH_SOCK"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthKey ¶ added in v0.5.5
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 Auth map key struct.
type Run ¶ added in v0.5.0
type Run struct {
ServerList []string
Conf conf.Config
// Mode value in
// - shell
// - cmd
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
// Trusted X11 flag (-Y option)
X11Trusted bool
// use or not-use local bashrc.
// IsNotBashrc takes precedence.
IsBashrc bool
IsNotBashrc bool
// local/remote Port Forwarding
PortForward []*conf.PortForward
// TODO(blacknon): Delete old keys
// L or R
PortForwardMode string
//
PortForwardLocal string
//
PortForwardRemote string
// Dynamic Port Forwarding
// set localhost port num (ex. 11080).
DynamicPortForward string
// HTTP Dynamic Port Forwarding
// set localhost port num (ex. 11080).
HTTPDynamicPortForward string
// Reverse Dynamic Port Forwarding
// set remotehost port num (ex. 11080).
ReverseDynamicPortForward string
// HTTP Reverse Dynamic Port Forwarding
// set remotehost port num (ex. 11080).
HTTPReverseDynamicPortForward string
// NFS Dynamic Forward
// set localhost port num (ex. 12049).
NFSDynamicForwardPort string
// NFS Dynamic Forward Path
// set remotehost path (ex. /path/to/remote).
NFSDynamicForwardPath string
// NFS Reverse Dynamic Forward
// set remotehost port num (ex. 12049).
NFSReverseDynamicForwardPort string
// NFS Reverse Dynamic Forward Path
// set localhost path (ex. /path/to/local).
NFSReverseDynamicForwardPath string
// Exec command
ExecCmd []string
// enable/disable print header in command mode
EnableHeader bool
DisableHeader bool
// StdinData from pipe flag
IsStdinPipe bool
// contains filtered or unexported fields
}
Run
func (*Run) CreateAuthMethodMap ¶ added in v0.6.0
func (r *Run) CreateAuthMethodMap()
CreateAuthMethodMap Create ssh.AuthMethod, into r.AuthMethodMap.
func (*Run) CreateSshConnect ¶ added in v0.6.0
CreateSshConnect return *sshlib.Connect this vaule in ssh.Client with proxy.
func (*Run) PrintSelectServer ¶ added in v0.6.0
func (r *Run) PrintSelectServer()
PrintSelectServer is printout select server. use ssh login header.
func (*Run) SetupSshAgent ¶ added in v0.6.0
func (r *Run) SetupSshAgent()
Click to show internal directories.
Click to hide internal directories.