Troubleshooting
Common issues and solutions.
Discovery issues
“No devices found” during scan
Causes:
- Listener not running
- Firewall blocking mDNS or TCP
- Different subnets (VPN scenario)
Solutions:
-
Verify listener is running:
# On target machine connecto listen -
Check firewall:
# Test mDNS (macOS/Linux) dns-sd -B _connecto._tcp # Test TCP port nc -zv <target-ip> 8099 -
For VPN/cross-subnet:
connecto config add-subnet 10.0.2.0/24 connecto scan
Scan finds device but can’t connect
Causes:
- Firewall allows mDNS but blocks TCP
- Listener crashed after advertising
Solutions:
- Restart listener:
connecto listen - Check TCP connectivity:
nc -zv <ip> 8099 - Review firewall rules for TCP 8099
Pairing issues
“Connection refused”
Causes:
- Listener not running
- Wrong port
- Firewall blocking TCP
Solutions:
# Verify listener is running
ps aux | grep connecto
# Check if port is listening
lsof -i :8099 # macOS/Linux
netstat -an | findstr 8099 # Windows
# Test connection
nc -zv <ip> 8099
“Connection timed out”
Causes:
- Wrong IP address
- Network routing issue
- Firewall dropping packets
Solutions:
# Verify IP is reachable
ping <ip>
# Check route
traceroute <ip> # macOS/Linux
tracert <ip> # Windows
“Permission denied” after pairing
Causes:
- Key not added to authorized_keys
- Wrong username
- SSH config issue
Solutions:
# On target machine, verify key was added
grep connecto ~/.ssh/authorized_keys
# Check permissions
ls -la ~/.ssh/
# Should be: authorized_keys 600, .ssh dir 700
# Test with verbose SSH
ssh -v <host>
SSH Issues
“Host key verification failed”
The remote host’s SSH server key changed.
Solutions:
# Remove old key
ssh-keygen -R <ip>
# Connect again (will prompt to accept new key)
ssh <host>
“Too many authentication failures”
SSH agent offering too many keys.
Solutions:
# Connect with specific key only
ssh -o IdentitiesOnly=yes -i ~/.ssh/connecto_<host> <host>
# Or update ~/.ssh/config (Connecto does this automatically):
# IdentitiesOnly yes
Can’t connect after IP change
Solutions:
# Update the IP
connecto update-ip <host> <new-ip>
# Verify
connecto test <host>
Platform-specific issues
macOS
mDNS not working:
# Check mDNS daemon
sudo launchctl list | grep mDNS
# Restart mDNS
sudo killall -HUP mDNSResponder
Firewall prompts:
- Allow “connecto” in System Preferences → Security & Privacy → Firewall
Windows
Firewall blocking Connecto:
# Add firewall rules
New-NetFirewallRule -DisplayName "Connecto mDNS" -Direction Inbound -Protocol UDP -LocalPort 5353 -Action Allow
New-NetFirewallRule -DisplayName "Connecto TCP" -Direction Inbound -Protocol TCP -LocalPort 8099 -Action Allow
OpenSSH not installed:
# Check if OpenSSH is available
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
# Install OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
SSH service not running:
# Start SSH agent
Start-Service ssh-agent
Set-Service ssh-agent -StartupType Automatic
Linux
mDNS/Avahi issues:
# Check Avahi daemon
systemctl status avahi-daemon
# Restart Avahi
sudo systemctl restart avahi-daemon
# Install if missing
sudo apt install avahi-daemon # Debian/Ubuntu
sudo dnf install avahi # Fedora
SELinux blocking SSH:
# Check SELinux status
getenforce
# Temporarily disable (for testing)
sudo setenforce 0
# Check audit log
sudo ausearch -m avc -ts recent
Config issues
Config file corrupted
Symptoms: Commands fail with JSON parse errors
Solution:
# Find config location
connecto config path
# Reset config (backup first)
mv ~/.config/connecto/config.json ~/.config/connecto/config.json.bak
SSH config conflicts
Symptoms: SSH uses wrong key or settings
Solution:
# Check for duplicate entries
grep -n "Host <hostname>" ~/.ssh/config
# Remove duplicates, keep Connecto entry
# Or manually merge settings
Getting help
Verbose output
Most commands support verbose mode (planned feature):
connecto scan -v
connecto pair -v 0
Debug information
Collect for bug reports:
# Version
connecto --version
# Config
connecto config list
connecto config path
# SSH config (remove sensitive info)
grep -A5 "# Added by Connecto" ~/.ssh/config
# System info
uname -a # macOS/Linux
systeminfo | findstr /B /C:"OS" # Windows
Reporting bugs
Report issues at: github.com/andreisuslov/connecto/issues
Include:
- Connecto version
- Operating system
- Steps to reproduce
- Error messages
- Relevant config (sanitized)