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

update-ip

Update the IP address for a paired host.

Usage

connecto update-ip <HOST> <IP>

Arguments

ArgumentDescription
HOSTName of the paired host
IPNew IP address

Description

The update-ip command changes the IP address for a paired host in ~/.ssh/config. This is useful when:

  • A device gets a new DHCP lease
  • You’re switching between networks (home/office)
  • The VPN assigns a different IP

The SSH keys remain valid - only the IP changes.

Example

connecto update-ip mydesktop 10.0.2.50

Output:

  CONNECTO UPDATE-IP

→ Updating IP for: mydesktop
→ Old IP: 192.168.1.55
→ New IP: 10.0.2.50

✓ Updated successfully!

You can now connect with:

  ssh mydesktop

Finding the New IP

On the Remote Machine

# Linux/macOS
ip addr show | grep inet

# Windows
ipconfig

Using Connecto scan

If the remote is running connecto listen:

connecto scan

The scan results show the current IP.

Notes

  • The SSH keys are not affected
  • You don’t need to re-pair after updating the IP
  • Consider using static IPs or hostnames for frequently-changing devices
CommandDescription
connecto hostsView current IP addresses
connecto testVerify connection after update