User Guide - Connecting to your Virtual Machine (SSH and Console)
Posted by Alan Bowman on 03 February 2011 10:14 AM
|
|||||||||
Applicable Plans - eApps Cloud Hosting plans (Webmin Control Panel)User Guide - Connecting to your Virtual Machine (SSH and Console)OverviewAfter your Virtual Machines are provisioned, you can connect to them using the Virtual Machine Console in the Customer Portal, or by using a standalone SSH (Secure Shell) client. This will allow you to work from the command line interface (CLI) of your Virtual Machine.
Connecting to your Virtual Machine using the Virtual Machine Console (Customer Portal) Connecting to your Virtual Machine using an SSH client (PuTTY, SecureCRT, etc) Connecting to your Virtual Machine using SSH Connecting to your Virtual Machine using the Virtual Machine Console (Customer Portal)The Virtual Machine Console is a Java based VNC client that is built into the Customer Portal. This provides “out-of-band” access to the command line of the Virtual Machine. In this context, “out-of-band” means that you can connect to the VM using the Virtual Machine Console, even if something like a software or networking misconfiguration has disabled external access to the VM (SSH is not working, network interfaces are down, etc).
Click on the View link for the Virtual Machine you wish to connect to - the small magnifying glass icon to the right of the Virtual Machine listing.
Connecting to your Virtual Machine using an SSH client (PuTTY, SecureCRT, etc)Using an SSH client such as PuTTY (Windows), SecureCRT (Windows, Mac OS X, Linux), Terminal.app (Mac OS X), or an xterm (Linux, Mac OS X), you can connect to the command line of your Virtual Machine. The advantage of an SSH client over a Java and browser-based solution like the Virtual Machine Console is that a standalone client is not affected by Java or browser version issues, or problems or conflicts with installed browser extensions or plug-ins. If you find yourself working from the command line on a regular basis, you should be using an actual SSH client. SSH ClientsThere are SSH clients available for every major operating system: Windows, Mac OS X, Linux, and *BSD. Windows SSH ClientsThere are several Windows SSH clients, both free and commercial.
UNIX SSH Clients (including Mac OS X, Linux and *BSD)For operating systems based on a UNIX variant, such as Mac OS X, Linux, or one of the *BSD flavors, there is usually an SSH client built into the system in the form of a terminal emulator. There should be no software to install in order to have an SSH client. For UNIX, Linux and *BSD systems, the type of terminal emulator available will vary depending on the window manager installed. These systems will also have the ability to connect via SSH directly from the console or command line of the operating system. For Mac OS X systems, the terminal emulator is the Terminal application, which is located in the Applications > Utilities. This is NOT the Console application - use only the Terminal application as an SSH client. Mac OS X users can also purchase SecureCRT, or use the free iTerm2 client.
Connecting to your Virtual Machine using SSHOnce you have located an SSH client to use, you can connect to your VM using the SSH protocol. You will need to know the following information:
Using PuTTY (Windows)To connect to your Virtual Machine using PuTTY, you will need to add the settings for the VM to the PuTTY configuration. Launch PuTTY, which will take you to the main PuTTY Configuration window. If this is your first time using PuTTY, only the entry for Default Settings will be available. Enter the following settings:
You can make other configuration changes to PuTTY, such as changing part of the appearance or the window behavior. However, none of those changes are necessary for PuTTY to work correctly. Click on Save to save the configuration details. Click on that session name to highlight it, and click Load. Then click Open to load the session, and open a connection to the VM.
Click Yes to allow the connection.
Login using the correct username and password, and you should be at the command prompt for the Virtual Machine. Using a Terminal Emulator program (Mac OS X, UNIX/Linux, *BSD)Open the Terminal Emulator program, and at the command prompt enter the following command, making sure to substitute the IP address of your Virtual Machine for IP_ADDRESS: This example uses Terminal.app on Mac OS X, but the command should be the same on any Linux or UNIX system.
Enter yes at the prompt to continue.
Login using the correct username and password, and you should be at the command prompt for the VM. | |||||||||
|