Results 1 to 7 of 7

Thread: SSH connection to a local Virtual Machine

  1. #1
    Join Date
    Apr 2008
    Posts
    2,347

    SSH connection to a local Virtual Machine

    I would like to create a small home server for file sharing.
    Since I do not have time to old computer at hand, I had a crazy idea: to install a server VM on my computer.

    I would have run directly to it, but I use windows XP and I would like my server is under debian. So I installed Debian on a VM, I installed the SSH package.
    But how do I connect with SSH from my computer, and another with putty?
    For the host, I try 127.0.0.1, my ip, but neither does ....
    How?
    Thank you in advance,

  2. #2
    Join Date
    May 2008
    Posts
    678

    Re: SSH connection to a local Virtual Machine

    If you have the network on your Debian you do ifconfig it will give you its IP address and you make a ssh to that ip with putty.

  3. #3
    Join Date
    May 2008
    Posts
    1,205

    Re: SSH connection to a local Virtual Machine

    Before any comments that would be nice to specify which software you use to virtualize. Anyway, everyone I know isolate the virtual machine network of real machine by default, so you'll have to go through the setup before you can log into SSH.

    Stop trying stupid things to chance.
    You want to connect to a machine that is not yours and you start by testing on the local loop? You have no basic network visibly?

  4. #4
    Join Date
    May 2008
    Posts
    23

    Re: SSH connection to a local Virtual Machine

    No indeed I have no basic network.
    I have two computers.
    I'm running Debian in a VM (virtualized by virtual box), and I would like to connect to this VM SSH from another computer.

  5. #5
    Join Date
    Apr 2008
    Posts
    4,088

    Re: SSH connection to a local Virtual Machine

    You stop your machine, you do it right click -> preferences -> Network tab and if you look at your network card is enabled (according to my memories I never had to setup, just perhaps enable NIC).
    After I tell you this from memor

  6. #6
    Join Date
    May 2008
    Posts
    23

    Re: SSH connection to a local Virtual Machine

    Finally I'll be running my server on a VM (True Machine ). By against, what IP do I connect over SSH? I have tried 127.0.0.1, my IP, but nothing works

  7. #7
    Join Date
    May 2008
    Posts
    2,389

    Re: SSH connection to a local Virtual Machine

    Already it would be good to set the local ip of this machine.

    Works on the local machine and edit / etc / networking / interfaces to pass the ip sets.

    Code:
     auto eth0 
      allow-hotplug eth0 
      iface eth0 inet static 
      address 192.168.1.20 
      netmask 255.255.255.0 
      gateway 192.168.1.1

    It tells the interface to take a fixed ip then configured address, ss asque of network and gateway.

    Then there is a
    Code:
      sudo / etc / init.d / networking restart
    and tents after you log in using ssh the ip you assigned to your machine.

Similar Threads

  1. Internet connection problem on Virtual Machine
    By ShastriJI in forum Networking & Security
    Replies: 5
    Last Post: 09-09-2010, 07:42 PM
  2. Replies: 5
    Last Post: 22-08-2010, 02:40 AM
  3. Replies: 6
    Last Post: 21-08-2010, 03:06 AM
  4. Unable to load java virtual machine on local computer
    By Cadallic in forum Software Development
    Replies: 3
    Last Post: 11-09-2009, 01:05 PM
  5. migrate Hyper-V virtual machine to virtual server/virtual PC 2007
    By Larry Scott in forum Windows Server Help
    Replies: 1
    Last Post: 18-03-2008, 03:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,386,355.04495 seconds with 16 queries