Documentation
¶
Index ¶
- func GetProxyList(server string, config conf.Config) (proxyList []string, proxyType map[string]string, err error)
- type Connect
- func (c *Connect) ConTerm(session *ssh.Session) (err error)
- func (c *Connect) CreateClient() (err error)
- func (c *Connect) CreateSession() (session *ssh.Session, err error)
- func (c *Connect) CreateSshAgent() (err error)
- func (c *Connect) PortForwarder()
- func (c *Connect) RunCmd(session *ssh.Session, command []string) (err error)
- func (c *Connect) RunCmdWithOutput(session *ssh.Session, command []string, outputChan chan []byte)
- type CopyConInfo
- type P11
- func (p *P11) CreateCtx(pkcs11Provider string) (err error)
- func (p *P11) GetCryptoSigner() (signers []crypto.Signer, err error)
- func (p *P11) GetKeyID() (err error)
- func (p *P11) GetPIN() (err error)
- func (p *P11) GetTokenLabel() (err error)
- func (p *P11) RecreateCtx(pkcs11Provider string) (err error)
- type Proxy
- type Run
- type RunScp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connect ¶ added in v0.5.0
type Connect struct {
Server string
Conf conf.Config
Client *ssh.Client
StdinWriter io.Writer
IsTerm bool
IsParallel bool
IsLocalRc bool
LocalRcData string
LocalRcDecodeCmd string
ForwardLocal string
ForwardRemote string
// contains filtered or unexported fields
}
func (*Connect) CreateClient ¶ added in v0.5.3
@brief: create ssh client @note:
support multiple proxy connect.
func (*Connect) CreateSession ¶ added in v0.5.0
@brief: create ssh session
func (*Connect) CreateSshAgent ¶ added in v0.5.3
func (*Connect) RunCmdWithOutput ¶ added in v0.5.1
@brief:
Run command over ssh, output to gochannel
func (c *Connect) RunCmdWithOutput(session *ssh.Session, command []string, outputChan chan string) {
type CopyConInfo ¶ added in v0.5.0
type P11 ¶ added in v0.5.3
type P11 struct {
Ctx *pkcs11.Ctx
Label string
SlotID uint
KeyID map[int][]byte
PIN string
SessionHandle pkcs11.SessionHandle
Signers []ssh.Signer
}
func (*P11) GetCryptoSigner ¶ added in v0.5.3
func (*P11) GetTokenLabel ¶ added in v0.5.3
func (*P11) RecreateCtx ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.