ssh

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(user, host, port string) tea.Cmd

Launch returns a tea.ExecCommand that SSHes into the given host as user. Bubbletea suspends the TUI, hands off the terminal, and resumes on exit. host should be the MagicDNS name when available, falling back to the IP. port is the SSH port; pass "" or "22" to use the default.

Types

type SSHDoneMsg

type SSHDoneMsg struct{}

SSHDoneMsg is sent when an SSH session exits cleanly.

type SSHErrorMsg

type SSHErrorMsg struct{ Err error }

SSHErrorMsg is sent when SSH fails to launch or exits with an error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL