Versions in this module Expand all Collapse all v0 v0.1.0 Nov 17, 2014 Changes in this version + const CS7 + const CS8 + const CertAlgoDSAv01 + const CertAlgoECDSA256v01 + const CertAlgoECDSA384v01 + const CertAlgoECDSA521v01 + const CertAlgoRSAv01 + const ECHO + const ECHOCTL + const ECHOE + const ECHOK + const ECHOKE + const ECHONL + const HostCert + const ICANON + const ICRNL + const IEXTEN + const IGNCR + const IGNPAR + const IMAXBEL + const INLCR + const INPCK + const ISIG + const ISTRIP + const IUCLC + const IXANY + const IXOFF + const IXON + const KeyAlgoDSA + const KeyAlgoECDSA256 + const KeyAlgoECDSA384 + const KeyAlgoECDSA521 + const KeyAlgoRSA + const NOFLSH + const OCRNL + const OLCUC + const ONLCR + const ONLRET + const ONOCR + const OPOST + const PARENB + const PARMRK + const PARODD + const PENDIN + const TOSTOP + const TTY_OP_ISPEED + const TTY_OP_OSPEED + const UserCert + const VDISCARD + const VDSUSP + const VEOF + const VEOL + const VEOL2 + const VERASE + const VFLUSH + const VINTR + const VKILL + const VLNEXT + const VQUIT + const VREPRINT + const VSTART + const VSTATUS + const VSTOP + const VSUSP + const VSWTCH + const VWERASE + const XCASE + var DefaultCipherOrder = []string + var DefaultMACOrder = []string + func MarshalAuthorizedKey(key PublicKey) []byte + func MarshalPublicKey(key PublicKey) []byte + type AgentClient struct + func NewAgentClient(rw io.ReadWriter) *AgentClient + func (ac *AgentClient) RequestIdentities() ([]*AgentKey, error) + func (ac *AgentClient) SignRequest(key PublicKey, data []byte) ([]byte, error) + type AgentKey struct + Comment string + func (ak *AgentKey) Key() (PublicKey, error) + func (ak *AgentKey) String() string + type CertTime uint64 + func (ct CertTime) IsInfinite() bool + func (ct CertTime) Time() time.Time + type Channel interface + Accept func() error + AckRequest func(ok bool) error + ChannelType func() string + Close func() error + ExtraData func() []byte + Read func(data []byte) (int, error) + Reject func(reason RejectionReason, message string) error + Stderr func() io.Writer + Write func(data []byte) (int, error) + type ChannelRequest struct + Payload []byte + Request string + WantReply bool + func (c ChannelRequest) Error() string + type ClientAuth interface + func ClientAuthAgent(agent *AgentClient) ClientAuth + func ClientAuthKeyboardInteractive(impl ClientKeyboardInteractive) ClientAuth + func ClientAuthKeyring(impl ClientKeyring) ClientAuth + func ClientAuthPassword(impl ClientPassword) ClientAuth + type ClientConfig struct + Auth []ClientAuth + ClientVersion string + Crypto CryptoConfig + HostKeyChecker HostKeyChecker + Rand io.Reader + User string + type ClientConn struct + func Client(c net.Conn, config *ClientConfig) (*ClientConn, error) + func Dial(network, addr string, config *ClientConfig) (*ClientConn, error) + func (c *ClientConn) Close() error + func (c *ClientConn) Dial(n, addr string) (net.Conn, error) + func (c *ClientConn) DialTCP(n string, laddr, raddr *net.TCPAddr) (net.Conn, error) + func (c *ClientConn) Listen(n, addr string) (net.Listener, error) + func (c *ClientConn) ListenTCP(laddr *net.TCPAddr) (net.Listener, error) + func (c *ClientConn) LocalAddr() net.Addr + func (c *ClientConn) NewSession() (*Session, error) + func (c *ClientConn) RemoteAddr() net.Addr + type ClientKeyboardInteractive interface + Challenge func(user, instruction string, questions []string, echos []bool) ([]string, error) + type ClientKeyring interface + Key func(i int) (key PublicKey, err error) + Sign func(i int, rand io.Reader, data []byte) (sig []byte, err error) + type ClientPassword interface + Password func(user string) (password string, err error) + type CryptoConfig struct + Ciphers []string + KeyExchanges []string + MACs []string + type ExitError struct + func (e *ExitError) Error() string + type HostKeyChecker interface + Check func(addr string, remote net.Addr, algorithm string, hostKey []byte) error + type Listener struct + func Listen(network, addr string, config *ServerConfig) (*Listener, error) + func (l *Listener) Accept() (*ServerConn, error) + func (l *Listener) Addr() net.Addr + func (l *Listener) Close() error + type OpenSSHCertV01 struct + CriticalOptions []tuple + Extensions []tuple + Key PublicKey + KeyId string + Nonce []byte + Reserved []byte + Serial uint64 + Signature *signature + SignatureKey PublicKey + Type uint32 + ValidAfter CertTime + ValidBefore CertTime + ValidPrincipals []string + func (c *OpenSSHCertV01) PrivateKeyAlgo() string + func (c *OpenSSHCertV01) PublicKeyAlgo() string + func (c *OpenSSHCertV01) Verify(data []byte, sig []byte) bool + func (cert *OpenSSHCertV01) BytesForSigning() []byte + func (cert *OpenSSHCertV01) Marshal() []byte + type ParseError struct + func (p ParseError) Error() string + type PublicKey interface + Marshal func() []byte + PrivateKeyAlgo func() string + PublicKeyAlgo func() string + Verify func(data []byte, sigBlob []byte) bool + func NewPublicKey(k interface{}) (PublicKey, error) + func ParseAuthorizedKey(in []byte) (out PublicKey, comment string, options []string, rest []byte, ok bool) + func ParsePublicKey(in []byte) (out PublicKey, rest []byte, ok bool) + type RejectionReason uint32 + const ConnectionFailed + const Prohibited + const ResourceShortage + const UnknownChannelType + func (r RejectionReason) String() string + type ServerConfig struct + Crypto CryptoConfig + KeyboardInteractiveCallback func(conn *ServerConn, user string, client ClientKeyboardInteractive) bool + NoClientAuth bool + PasswordCallback func(conn *ServerConn, user, password string) bool + PublicKeyCallback func(conn *ServerConn, user, algo string, pubkey []byte) bool + Rand io.Reader + func (s *ServerConfig) AddHostKey(key Signer) + func (s *ServerConfig) SetRSAPrivateKey(pemBytes []byte) error + type ServerConn struct + ClientVersion []byte + User string + func Server(c net.Conn, config *ServerConfig) *ServerConn + func (c *ServerConn) LocalAddr() net.Addr + func (c *ServerConn) RemoteAddr() net.Addr + func (s *ServerConn) Accept() (Channel, error) + func (s *ServerConn) Close() error + func (s *ServerConn) Handshake() error + type ServerTerminal struct + Channel Channel + Term Terminal + func (ss *ServerTerminal) ReadLine() (line string, err error) + func (ss *ServerTerminal) Write(buf []byte) (n int, err error) + type Session struct + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + func (c Session) Close() error + func (s *Session) CombinedOutput(cmd string) ([]byte, error) + func (s *Session) Output(cmd string) ([]byte, error) + func (s *Session) RequestPty(term string, h, w int, termmodes TerminalModes) error + func (s *Session) RequestSubsystem(subsystem string) error + func (s *Session) Run(cmd string) error + func (s *Session) Setenv(name, value string) error + func (s *Session) Shell() error + func (s *Session) Signal(sig Signal) error + func (s *Session) Start(cmd string) error + func (s *Session) StderrPipe() (io.Reader, error) + func (s *Session) StdinPipe() (io.WriteCloser, error) + func (s *Session) StdoutPipe() (io.Reader, error) + func (s *Session) Wait() error + type Signal string + const SIGABRT + const SIGALRM + const SIGFPE + const SIGHUP + const SIGILL + const SIGINT + const SIGKILL + const SIGPIPE + const SIGQUIT + const SIGSEGV + const SIGTERM + const SIGUSR1 + const SIGUSR2 + type Signer interface + PublicKey func() PublicKey + Sign func(rand io.Reader, data []byte) ([]byte, error) + func NewSignerFromKey(k interface{}) (Signer, error) + func ParsePrivateKey(pemBytes []byte) (Signer, error) + type Terminal interface + ReadLine func() (line string, err error) + SetSize func(x, y int) + Write func([]byte) (int, error) + type TerminalModes map[uint8]uint32 + type UnexpectedMessageError struct + func (u UnexpectedMessageError) Error() string + type Waitmsg struct + func (w Waitmsg) ExitStatus() int + func (w Waitmsg) Lang() string + func (w Waitmsg) Msg() string + func (w Waitmsg) Signal() string + func (w Waitmsg) String() string