← Back to Home

lissh hosts - Host Management

List, search, edit, and connect to your SSH hosts.

Usage

lissh hosts [command]

Commands

list

List all known hosts.

lissh hosts list
lissh hosts list --all      # Include inactive hosts

Search hosts by hostname, alias, IP, notes, or username.

lissh hosts search web

info

Show detailed information about a host.

lissh hosts info <id>

edit

Update a host's properties.

lissh hosts edit <id> [flags]

Flags

--aliasSet a friendly alias
--notesAdd notes or labels
--key-idAssociate an SSH key
--portSet custom port
--userSet SSH user

Examples

# Set an alias
lissh hosts edit 16 --alias=webserver

# Add notes
lissh hosts edit 16 --notes="Production web server"

# Associate an SSH key
lissh hosts edit 16 --key-id=1

# Change port
lissh hosts edit 16 --port=2222

# Set SSH user
lissh hosts edit 16 --user=ubuntu

connect

Connect to a host (also available as lissh <alias> at root level).

lissh hosts connect <id>

inactivate

Mark a host as inactive (won't appear in lists).

lissh hosts inactivate <id>

remove

Remove a host and its connection history.

lissh hosts remove <id>
lissh hosts remove <id> --dry-run  # Preview

prune

Remove all inactive hosts.

lissh hosts prune

Direct Connection

Instead of using hosts connect, you can connect directly:

# By alias or hostname
lissh webserver
lissh 192.168.1.100

# By ID
lissh -i 16

Host Properties

Each host has: