This package simply prompt a ssh connection.
- Arrow Keys
- Ctrl- Keys
- SSH connection with password
- SSH connection with private keys
// leave pass empty for connection with ssh keys
err := gossh.Prompt("user", "pass", "host", "port")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
err := gossh.Exec("user", "pass", "host", "port", "ls -la")
if err != nil {
fmt.Println(err)
os.Exit(1)
}