ShellNode opens an SSH shell to the given node.
(sshClient *ssh.SSHClient)
| 52 | |
| 53 | // ShellNode opens an SSH shell to the given node. |
| 54 | func ShellNode(sshClient *ssh.SSHClient) error { |
| 55 | if sshClient == nil { |
| 56 | return fmt.Errorf("nil ssh client") |
| 57 | } |
| 58 | |
| 59 | return sshClient.Shell() |
| 60 | } |