SSH Into a VMware Linux Guest VM from the Host OS

SSH Into a VMware Linux Guest VM from the Windows Host OS

Connecting to your VMware virtual machine’s Linux operating system via SSH is simple, but it’s not as straightforward as connecting to a Linux VPS.

In this short tutorial we’ll quickly cover how to configure your Linux guest VMware virtual machine and retrieve the information you need to connect from your host machine.

Prerequisites

Before you can connect with SSH, you need:

  • VMware Workstation/Player installed on your Windows host computer.
  • A Linux virtual machine created in VMware.
  • SSH enabled and open on port 22 in the Linux VM.

Configure Bridged Networking

To allow your VM to be accessible over SSH, it needs to have a bridged network connection:

  1. In VMware, right-click on the Linux virtual machine in the sidebar and go to Settings > Network Adapter.
  2. Change the network connection from NAT to Bridged. This gives your VM an IP address on your local network.
VMware Adapter Bridged Mode

Find the Linux IP Address

After enabling bridged networking, you need to find the IP address assigned to your Linux VM:

  1. Start the Linux virtual machine.
  2. Log into the Linux VM.
  3. Run the following to list the IP addresses.
    ip a
  4. Look for the IP address in the inet section of the ens33 interface.
    inet

Connect with SSH

With the IP address, you can now open an SSH connection from your Windows host OS:

  1. On Windows, open the command prompt or a terminal like PuTTY, and on Linux/Mac you can use the terminal.
  2. Connect to the Linux VM IP address with ssh username@ip_address (replace username and IP).
  3. Enter the password when prompted to log in.

You are now connected to the Linux virtual machine terminal for remote management!

Troubleshooting

If you only see IPv6 addresses, reboot the Linux VM and run ip a again to get the IPv4 address needed for SSH.

    0 Shares:
    Subscribe
    Notify of
    guest
    Receive notifications when your comment receives a reply. (Optional)
    Your username will link to your website. (Optional)

    0 Comments
    Inline Feedbacks
    View all comments
    You May Also Like
    Bash Append to File
    Read More

    Bash Append to File

    There are various ways to append text to a file in bash. In computing, append means to add…