Shell implements a remote shell to an SSH server using x/crypto/ssh
| 100 | |
| 101 | // Shell implements a remote shell to an SSH server using x/crypto/ssh |
| 102 | type 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. |
| 111 | func NewShell(user, address string, opts ...ShellOption) (*Shell, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected