Documentation
¶
Index ¶
- func AddKnownHost(host string, remote net.Addr, key ssh.PublicKey, knownHostsFile string) (err error)
- func CheckKnownHost(host string, remote net.Addr, key ssh.PublicKey, knownHostsFile string) (found bool, err error)
- func DefaultKnownHosts() (ssh.HostKeyCallback, error)
- func DefaultKnownHostsPath() (string, error)
- func Download(localPath, remotePath string, c *ssh.Client) (err error)
- func GetSigner(privateKeyPath, passphrase string) (signer ssh.Signer, err error)
- func HasAgent() bool
- func NewSFTPClient(c *ssh.Client) (*sftp.Client, error)
- func NewSSHClient(host, user string, port int, auth Auth) (*ssh.Client, error)
- func Run(command string, c *ssh.Client) error
- func Shell(c *ssh.Client) (err error)
- func Upload(localPath, remotePath string, c *ssh.Client) (err error)
- func VerifyHost(host string, remote net.Addr, key ssh.PublicKey) error
- type Auth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKnownHost ¶
func CheckKnownHost ¶
func DefaultKnownHosts ¶
func DefaultKnownHosts() (ssh.HostKeyCallback, error)
func DefaultKnownHostsPath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.