MCPcopy
hub / github.com/smallstep/cli / Shell

Struct Shell

internal/sshutil/shell.go:102–108  ·  view source on GitHub ↗

Shell implements a remote shell to an SSH server using x/crypto/ssh

Source from the content-addressed store, hash-verified

100
101// Shell implements a remote shell to an SSH server using x/crypto/ssh
102type Shell struct {
103 user string
104 address string
105 authMethods []ssh.AuthMethod
106 client *ssh.Client
107 dialer func(callback ssh.HostKeyCallback) (*ssh.Client, error)
108}
109
110// NewShell initializes a new shell to the given address.
111func NewShell(user, address string, opts ...ShellOption) (*Shell, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected