Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

hosts

List all paired hosts.

Usage

connecto hosts

Description

The hosts command displays all devices you’ve paired with using Connecto. It reads ~/.ssh/config and lists the entries marked # Added by connecto; hand-written host blocks are not shown.

Example

connecto hosts

Output:

Paired hosts:

  • mydesktop → john@192.168.1.55
  • workstation → admin@10.0.2.100
  • laptop → alice@192.168.1.42

Connect with:
  → ssh <hostname>

Output fields

FieldDescription
Host aliasName to use with the ssh command
UserUsername for SSH connection
AddressIP address or hostname of the remote machine
CommandDescription
connecto test <host>Test SSH connection
connecto update-ip <host> <ip>Update host’s IP address
connecto unpair <host>Remove pairing
connecto exportBackup all pairings