With VMware Fusion, when a Linux virtual machine has an SSH service enabled, you can configure quick SSH login to the virtual machine. The configuration enables SSH login from the Mac host to a Linux virtual machine in the Virtual Machine Library. The virtual machine can be running on the Mac host or on a remote server running VMware Workstation Pro, VMware ESXi, or VMware vCenter Server.
By configuring SSH login, you provide yourself with easy and secure SSH access to the Linux virtual machine now and at anytime in the future. You can then use a terminal window to access the Linux virtual machine, where you can view files, transfer data, and run the commands available on the Linux operating system.
You can use an SSH command to log into a Linux virtual machine instead of using Fusion to configure SSH login on the virtual machine. However, each time you use an SSH command you must provide the IP address of the virtual machine and your user name and password.
Prerequisites
- Enable SSH on the Linux virtual machine, if not already enabled. See instructions for the specific Linux operating system.
- Add the Linux Virtual Machine to the Virtual Machine Library, if not already added.
You can add virtual machines that reside on the Mac host or on a supported remote server. See Perform Actions on Your Virtual Machines from the Virtual Machine Library Window
- Start up the Linux virtual machine, if not already started. See Start a Virtual Machine's Operating System
Procedure
Results
A terminal window opens on the Mac host desktop and SSH connects to the virtual machine. With the terminal window open and connected to the Linux virtual machine, you now have command-line access to the Linux virtual machine.
What to do next
In the future, to open an SSH connection from the Mac host to the Linux virtual machine, in the Fusion Virtual Machine Library, select the Connect to SSH option for the Linux virtual machine.