Documentation
¶
Index ¶
- Constants
- 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 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 Cryptor
- type PasswordReader
- type SSHClient
Constants ¶
View Source
const Client = "SSH-2.0-Syringe"
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 Cryptor ¶
func NewDecryptor ¶
func NewDecryptor(privateKey *rsa.PrivateKey) Cryptor
func NewEncryptor ¶
type PasswordReader ¶
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
func NewSSHClient ¶
Click to show internal directories.
Click to hide internal directories.