Find the answer to your Linux question:
Results 1 to 5 of 5
Hey, today I installed VMWare on my Win7 comp and threw Ubuntu 9.10 x64 as the first on it. First off: I am obv. not well aware of linux else ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5

    Big Problem: VMWare on Windows running Ubuntu / cant connect via putty

    Hey,

    today I installed VMWare on my Win7 comp and threw Ubuntu 9.10 x64 as the first on it.

    First off: I am obv. not well aware of linux else I wouldn`t be posting here.

    After installation I tried directly connecting to localhost via putty which didn`t work as I didn`t think of installing openSSH beforehand. I screwed a lot around in Virtual Connection Editor of VMWare, forwarding port 22 in NAT settings with basically all IPs that showed up there.

    Anyways, got told to install openSSH and so did I. Funnily it worked directly connecting via putty at localhost.

    Had to erase my virtual server tho as I wanted to test a 32bit Ubuntu (completely deleted all files and reseted all network settings to default). After installing linux I instantly installed openSSH this time, thinking it`d work as it should.

    It didn`t. Connection got rejected on attempt. So did it when I tried screwing in connection editor again.

    Reinstalling, rebooting - nothing worked. I am back at 64bit but still not able to open up an SSH connection with putty.

    Netstat gives out the following:


    netstat -an | grep LISTEN
    21:09:53: tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
    tcp6 0 0:::22 :::* LISTEN

    Can someone please tell me what to do (best without installing any further programs as it worked already without any further installations).

    Best regards and thanks in advance.

    Regards.

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Your Ubuntu virtual machine (VM) has an IP address. SSH to it's IP address, making sure that:

    - SSH server is installed, running, and configured for password authentication
    - No firewall is blocking the connection

    To just verify that SSH is listening and that you can access it from the Windows OS:

    Code:
    telnet <ubuntu_ip_address> 22
    Example results:

    Code:
    telnet XX.XX.XX.XX 22
    Trying XX.XX.XX.XX...
    Connected to XXXXXXXXXXX.
    Escape character is '^]'.
    SSH-1.99-OpenSSH_4.2   <== SSH daemon is listening and was reached

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    Quote Originally Posted by HROAdmin26 View Post
    - SSH server is installed, running, and configured for password authentication
    I guess the configuration of SSH is the exact problem I have - as I have literally no clue about what to do.

    VMWare has created two additional network connections for me (on windows), both Ethernet Adapters both with LAN ips.

    Trying to connect to them via putty both refuse my connection just as it does when I try logging via localhost.

    My guess is that I somehow managed to forward the exact port 22 I use in putty to the actual IP thats being used and port 22 on the virtual machine (linux), however I am not able to do that anymore - I simply can`t find the right IP.

    telnet localhost (or those two IPs) refuse connection from VM@linux.

    telnet localhost on windows tells me no connection could be established.
    telnet to any of the two VMware IPs being displayed in my windows network tells me the same thing.

    Pinging the three of them on windows works just fine.

    Any ideas?

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Yes, you need to read the VMware manual for your product.

    VMware created virtual *networks* - those NIC's in Windows are just that - network cards attached to the virtual networks. Think of it this way - VMware has created 2 new network switches and attached them to your PC. Then it created 2 virtual NIC's and attached them to these virtual switches. The third "virtual network" is a transparent bridge between the VM's NIC and the host machine's NIC - so no additional NIC is created in Windows.

    When you create the VM, you can attach the VM's NIC to the bridged network, the NAT network, or the host-only network. Your VM has its own NIC and IP address connected to whichever network you specified.

    You can use the ifconfig command in Ubuntu to display your IP address, the netstat command to show what ports are in use/listening (to see if the SSH daemon is running), and the iptables command to ensure there is no firewall blocking ports. Google can provide way more info than I can type here.

    * You do not need to play with any of the virtual network settings in VMware, so I would remove/reset anything you changed back to the default.

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    Problem is, I can google those commands, I can use them - but I can`t read from output they bring.

    It looks for me like it was just messed a little.

    Looking for blocked IPs/Ports gives me empty results.

    Checking ifconfig gives me a LAN ip (192....) @ eth0 and localhost (107...)@lo I can`t connect to via putty either.

    netstat gives me out whats written in my first post:

    netstat -an | grep LISTEN
    21:09:53: tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
    tcp6 0 0:::22 :::* LISTEN

    netstat -nr
    192.168.10.0 0.0.0.0 255.255.255.0 U eth0
    0.0.0.0 192.168.10.2 0.0.0.0 UG eth0


    Now I can`t get any further.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...