Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669024yI believe it's called... get a better internet connection.
Or alternatively
ClientAliveInterval 1200
ClientAliveCountMax 5
Bastard won't timeout anytime soon. -
SSH keys should be independent of connection timeouts...
Have you tested TCP connection works ("telnet <IP> <SSH port>" should result in "SSH-2.0-OpenSSH_X.Y")? -
Your firewall is blocking the port.
Configure both host and vm firewalls accordingly.
Conn timeout is not thrown when your access policy doesn't match. It's thrown when some network connection is timing out. If the firewall is dropping packets rather than rejecting - that's exactly what you get. -
@ashishsalunkhe probe the port manually to eliminate firewall as the culprit.
In your host:
nc -w3 -vz <vm_IP> 22
and see whether you get a success message or a timeout. If it's a timeout - it's definitely not your ssh configuration to blame but networking
settting up an ssh connection to vm is taking so much time. I have created a ssh key using ssh keygen and added the host ip address to my config file. Deleted the knownhosts file from .ssh folder. Still getting connection timed out. Need help asap
question