Connection Issues

Diagnose and resolve SSH connection problems

Connection Refused

Connection refused error

Possible Causes

  • SSH server not running
  • Wrong host or port
  • Blocked by firewall

Solutions

  1. Check if SSH service is running on server: sudo systemctl status sshd
  2. Verify host address and port number are correct
  3. Check firewall settings: sudo ufw status or sudo iptables -L
  4. Try from a different network

Connection Timeout

Connection timed out error

Possible Causes

  • Server offline
  • Network issues
  • Firewall dropping packets
  • Wrong IP address

Solutions

  1. Verify server is online (ping or web console)
  2. Check network connection status
  3. Verify VPN connection if required
  4. Double-check IP address is correct

💡 Tip

To increase connection timeout, adjust 'Connect Timeout' in Connection Settings > Advanced.

Host Key Verification Failed

Occurs when the host key differs from the previously stored one.

What This Error Means

SSH verifies the server's identity using a host key. If this key has changed, it could mean the server was reinstalled or a man-in-the-middle attack occurred.

Solutions

  1. Verify if the server was recently reinstalled
  2. Confirm with admin if host key was changed
  3. If confirmed safe, select 'Update Key' in HejShell
  4. If suspicious, do not connect

⚠️ Security Warning

Ignoring host key changes poses security risks. Always confirm with the server administrator.

Connection Drops

Connection frequently disconnects

Possible Causes

  • Unstable network
  • Server-side timeout settings
  • NAT/firewall timeout
  • Server overload

Solutions

  1. Enable Keep-alive in connection settings
  2. Set Keep-alive interval to 30-60 seconds
  3. Switch to a more stable network
  4. Ask server admin to set ClientAliveInterval

Slow Connection

Connection is slow or laggy

Possible Causes

  • Insufficient network bandwidth
  • Server overload
  • High network latency
  • DNS lookup delay

Solutions

  1. Try from a different network
  2. Enable compression in connection settings
  3. Try connecting directly with IP instead of DNS
  4. Ask server admin to check server status

DNS Resolution Failed

Occurs when the hostname cannot be resolved to an IP address.

Solutions

  1. Verify hostname spelling
  2. Try connecting directly with IP address
  3. Change DNS server (e.g., 8.8.8.8)
  4. Check network settings

Diagnostic Steps

Follow these steps to systematically diagnose connection issues.

  1. Run 'Connection Test' in Settings > Diagnostics
  2. Check logs (Settings > Logs)
  3. Test connecting to the same server with another SSH client
  4. If issue persists, contact support with logs attached

Still Having Issues?

If the above methods don't resolve the issue, please contact us with connection logs attached. dev@hej.ai.kr

Hej Shell | Hej Shell