0

My network adapter is set to "Bridged Adapter". My CentOS (guest) IP is 192.168.0.4 and I am able to view Apache web server (port 80) from Windows 7 (host) but I am unable to SSH (port 22). I get "connection refused" from putty.

Here's a screenshot of my iptables in CentOS:

enter image description here

2 Answers 2

1

If you are accessing the Apache HTTP Server welcome page using localhost and not the IP address, then it is possible that dhcpcd is not running. Have you verified that sshd is running?

2
  • Wow I think I better go to sleep sshd was simply not running. LOL.
    – IMB
    Sep 18, 2012 at 20:23
  • Haha, it happens to the best of us.
    – p_strand
    Sep 18, 2012 at 20:26
0

First make sure you can connect to the CentOS VB

ping 192.168.0.4

  • Make sure sshd is running, the "connection refused message" usually means that sshd is not running.
/etc/init.d/sshd restart
  • Your firewall configuration appears to be ok, but just in case disable it for testing.
/etc/init.d/iptables stop
  • Also check your configuration in /etc/hosts.allow and /etc/hosts.deny, at least must have a line like:

sshd : 192.168.0. : allow

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .