Documentation
¶
Index ¶
- Variables
- func FlushStdin()
- func LoadConfig(path string) error
- func LoadConfigBytes(names ...string) ([]byte, error)
- func LoadSshConfig() error
- func NewSFTPClient(sshClient *ssh.Client) (*sftp.Client, error)
- func SetLogger(logger Logger)
- type CallbackShell
- type Client
- type ConnType
- type Logger
- type Node
- type SFTPShell
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultCiphers = []string{
"aes128-ctr",
"aes192-ctr",
"aes256-ctr",
"aes128-gcm@openssh.com",
"chacha20-poly1305@openssh.com",
"arcfour256",
"arcfour128",
"arcfour",
"aes128-cbc",
"3des-cbc",
"blowfish-cbc",
"cast128-cbc",
"aes192-cbc",
"aes256-cbc",
}
)
Functions ¶
func LoadConfig ¶
func LoadConfigBytes ¶
func LoadSshConfig ¶
func LoadSshConfig() error
func NewSFTPClient ¶
NewSFTPClient creates an SFTP client from an SSH client with performance optimizations
Types ¶
type CallbackShell ¶
type ConnType ¶
type ConnType int
ConnType represents the connection type
func (ConnType) Description ¶
type Logger ¶
type Node ¶
type Node struct {
Name string `yaml:"name"`
Alias string `yaml:"alias"`
Host string `yaml:"host"`
User string `yaml:"user"`
Port int `yaml:"port"`
KeyPath string `yaml:"keypath"`
Passphrase string `yaml:"passphrase"`
Password string `yaml:"password"`
CallbackShells []*CallbackShell `yaml:"callback-shells"`
Children []*Node `yaml:"children"`
Jump []*Node `yaml:"jump"`
}
type SFTPShell ¶
type SFTPShell struct {
// contains filtered or unexported fields
}
SFTPShell manages the interactive SFTP session
func NewSFTPShell ¶
NewSFTPShell creates a new SFTP shell instance
Click to show internal directories.
Click to hide internal directories.