Can't putty SSH to RHEL 7 VM

Latest response

Hello,

I have a Rhel 7 virtual machine that I can't ssh to, I've joined the vm to the domain and sshd is running and listening but I get the error " Network error: Connection timed out". Does anyone have any suggestions for what I can do to solve this issue?

Responses

Possible steps;

  1. Verify SSHD port & service is up (I realize you mention it up)
%> netstat -an|grep sshd
  1. Test the route (possible port blocking between hops)
%> traceroute <system>
  1. Make use of a tool such as nmap to test the remote port status if filtered is the status look at firewall or network router acls
%> nmap -p<SSHD port, typically 22> <system>
  1. Check for xinetd hosts.allow/hosts.deny filters on target system
%> cat /etc/hosts.deny
  1. Check the iptables rules on the system (if any)
%> iptables -L
  1. Since its a VM make sure you have access to it via the network configuration; a. A bridged configuration will expose service to all machines including your own b. A host-only configuration will expose the sshd service locally only c. A nat configuration will require some host port forwarding rules to gain access (this is probably your problem)

Additionally, make sure you have a current version of putty. If you have specific protocols (like a higher protocol of ssh mandated by configurations), it will never work.

R. Hinton tagged the issue that I recently fell into (actually a client of mine). I block old crappy versions of SSL that are vulnerable to attacks, so his ssh client (not putty but another one) had a fit. We sorted it out, but the issue was exactly that - his list of protocols to step thru didn't jive with the server.

And again, ensure that the ports are open in the firewall and daemon is running. Do port mapping at the gateway if need be as well.

We had that just a while ago as well. [edited] we upgraded our putty client because we want only reasonable SSH protocols (and block unreasonable old protocols), and have configured as such.

You should NOT be using any SSH protocol less than 2.x but I am fairly certain the OP's problem has to do with the VM host network configuration for the guest he is trying to SSH to.

RHEL server 7.2 is reachable over 22 port using putty But when i tried to do ssh across the server it's not happening

It's ping-able across server's and firewall has been stopped

It happened to me this weird thing where sometimes I can and other I cannot ssh to my VM (RHEL 7.4). It simply won't accept my credentials. Tried almost everything 'till I noticed I'm connected my VPN (Checkpoint) on my W10 machine. After shutting down the VPN connection, problem was solved. I hope this helps someone.

To all having ssh issues, please open a new discussion. This one is already 2 years old.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.