Documentation
¶
Index ¶
- func AddIdentityToSSHConfig(identity string, hostname string, f *os.File) error
- func AuthMethod(identity string, out io.Writer) (gossh.AuthMethod, error)
- func ConfigFile() (*os.File, error)
- func Decrypt(cypherText string, privateKey *rsa.PrivateKey) (string, error)
- func Encrypt(secret string, publicKey ssh.PublicKey) (string, error)
- func GetPrivateKey(path string, out io.Writer, pr PasswordReader) (*rsa.PrivateKey, error)
- func GetPublicKey(path string) (gossh.PublicKey, error)
- func GetSigner(path string, out io.Writer, pr PasswordReader) (gossh.Signer, error)
- func NewSSHAgentClient(sshAuthSock string) (agent.ExtendedAgent, error)
- func NewSignersFunc(publicKey gossh.PublicKey, agentSigners []gossh.Signer) func() ([]gossh.Signer, error)
- type PasswordReader
- type SSHClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIdentityToSSHConfig ¶
func AuthMethod ¶
func ConfigFile ¶
func GetPrivateKey ¶
func GetPrivateKey(path string, out io.Writer, pr PasswordReader) (*rsa.PrivateKey, error)
func NewSSHAgentClient ¶
func NewSSHAgentClient(sshAuthSock string) (agent.ExtendedAgent, error)
Types ¶
type PasswordReader ¶
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
func NewSSHClient ¶
Click to show internal directories.
Click to hide internal directories.