LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 01-24-2011, 02:55 PM   #1
WallyWorld
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 6
Cant SSH into CentOS 5.5 running on VMware under Windows 7


Hi
I am thinking about buying a dedicated server, but before I commit to anything I wanted to install CentOS in a vmware to play around with for a bit and get to know the ins and outs.

The installation of CentOS appeared to have completed without any errors, after I rebooted I tried to SSH into the CentOS VE using putty(so I can get used to doing everything remotely) but putty always responds with "Network error: Connection timed out"

I can ping the CentOS VE from my windows 7 and I can ping windows 7 from within CentOS, CentOS also appears to have internet access as I can also ping external hostnames from inside CentOS

I have tried disabling SELINUX, iptables and also I tried adding 'SSHD: ALL' to '/etc/hosts.allow' but neither of these solutions helped

Does anyone have any ideas what could be causing my Ssh to be blocked? I'm using VMware workstation 7.0 and my vmware networking is setup as bridged so the VE has its own IP assigned by my router

Thanks, any help is appreciated

*edit*
Also I am able to SSH into CentOS from within CentoS, so SSH is running

Last edited by WallyWorld; 01-24-2011 at 03:00 PM. Reason: extra info
 
Old 01-24-2011, 04:31 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Have you opened port 22 in the Centos firewall ? Check your system security settings and make sure ssh is checked as trusted.
 
Old 01-24-2011, 05:14 PM   #3
fcintron
Member
 
Registered: Oct 2010
Location: México
Distribution: Centos
Posts: 72

Rep: Reputation: 4
Quote:
Originally Posted by WallyWorld View Post
Hi
I am thinking about buying a dedicated server, but before I commit to anything I wanted to install CentOS in a vmware to play around with for a bit and get to know the ins and outs.

The installation of CentOS appeared to have completed without any errors, after I rebooted I tried to SSH into the CentOS VE using putty(so I can get used to doing everything remotely) but putty always responds with "Network error: Connection timed out"

I can ping the CentOS VE from my windows 7 and I can ping windows 7 from within CentOS, CentOS also appears to have internet access as I can also ping external hostnames from inside CentOS

I have tried disabling SELINUX, iptables and also I tried adding 'SSHD: ALL' to '/etc/hosts.allow' but neither of these solutions helped

Does anyone have any ideas what could be causing my Ssh to be blocked? I'm using VMware workstation 7.0 and my vmware networking is setup as bridged so the VE has its own IP assigned by my router

Thanks, any help is appreciated

*edit*
Also I am able to SSH into CentOS from within CentoS, so SSH is running
Try to run wireshark. Wireshark is a protocol analyzer. Install and activate it before trying to connect your ssh session. Te result is going to be a trace of the flow of the packets between your windows and centos host.

When you have this result post it to the forum.

Regards
 
Old 01-24-2011, 05:20 PM   #4
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 832

Rep: Reputation: 181Reputation: 181
cannot ssh

DISCOSURE: I do not VMWARE

Did you check the networking setup in the virtual? If it is set to NAT you will have problems running services: for server guests you need to be Bridged: the guest needs to pick up or be assigned its own external IP address.
 
Old 01-24-2011, 06:09 PM   #5
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,270

Rep: Reputation: 99
I was also confused how to do this.
See this

If you still face problems we are open to help you out.
 
Old 01-25-2011, 01:06 AM   #6
WallyWorld
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by fcintron View Post
Try to run wireshark. Wireshark is a protocol analyzer. Install and activate it before trying to connect your ssh session. Te result is going to be a trace of the flow of the packets between your windows and centos host.

When you have this result post it to the forum.

Regards
thanks for the wireshark hint, I dont know why I didnt think of it before

after running wireshark I could see the ssh being sent to CentOS and CentOS WAS replying to it,
but then my windows 7 didnt respond further, so I knew the problem was with windows not the VE setup

well long story short, my firewall was still running *facepalm* I thought I added it but guess I didnt do it properly

now I can SSH into my CentOS

Thanks everyone for the help and hints
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slow SSH Login --> CentOS 5.0 --> VMware Server --> Plesk Control Panel 8.4.0 bskrakes Linux - General 11 12-17-2013 11:10 AM
[SOLVED] FC9 running on VMWare server 2.0, no SSH kinetik Linux - Security 5 09-22-2009 11:47 AM
[SOLVED] What's better for running Windows software in Linux, Wine or Windows VMware? Advice Pro Linux - Software 1 03-31-2009 04:20 PM
LXer: Running Solaris 10 (11/06) Virtual Machine on CentOS 5.0 (VMWare Server 1.0.3) LXer Syndicated Linux News 0 05-25-2007 01:46 AM
VMware running windows as a window. Nz_Boy_2004 Linux - Software 1 06-09-2004 02:25 AM


All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration