Documentation ¶
Index ¶
- func GetSSHVersion() (string, error)
- type SSH
- func (s *SSH) CheckKeyTypeAndClientVersion(ctx context.Context)
- func (s *SSH) IsCertFresh(c *config.Config, username string) (bool, error)
- func (s *SSH) ReadAndParseCert() (*ssh.Certificate, error)
- func (s *SSH) ReadAndParsePrivateKey() (interface{}, error)
- func (s *SSH) ReadCert() ([]byte, error)
- func (s *SSH) ReadPrivateKey() ([]byte, error)
- func (s *SSH) ReadPublicKey() ([]byte, error)
- func (s *SSH) WriteCert(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSSHVersion ¶ added in v0.2.11
GetSSHVersion gets the version of the ssh client
Types ¶
type SSH ¶
type SSH struct {
// contains filtered or unexported fields
}
SSH is a namespace
func (*SSH) CheckKeyTypeAndClientVersion ¶ added in v0.2.11
CheckKeyTypeAndClientVersion checks to see if the key type selected is compatible with the ssh client version Particularly: https://github.com/chanzuckerberg/blessclient#ssh-client-78-cant-connect-with-certificates
func (*SSH) IsCertFresh ¶
IsCertFresh determines if the cert is still fresh
func (*SSH) ReadAndParseCert ¶ added in v0.2.8
func (s *SSH) ReadAndParseCert() (*ssh.Certificate, error)
ReadAndParseCert reads a certificate off disk and attempts to unmarshal it
func (*SSH) ReadAndParsePrivateKey ¶ added in v0.2.8
ReadAndParsePrivateKey reads and unmarshals a private key
func (*SSH) ReadPrivateKey ¶ added in v0.2.8
ReadPrivateKey reads the private key
func (*SSH) ReadPublicKey ¶
ReadPublicKey reads the SSH public key
Click to show internal directories.
Click to hide internal directories.