The use of Secure Shell (SSH) gives you the option of connecting to public VMs using key pairs instead of a username and password.
If you are using one of the images or blueprints provided by Ravello (public images and public blueprints), you need to generate an SSH key pair to connect in this manner. Key pairs are managed in the Library page, however you can also add or import key pairs on-the-fly while creating a new application that is based on a public image. Similarly, you can access key pair functionality from the General tab of the VM Editor or the VM Properties pane when the VM is selected in the Design Editor (for applications or blueprints). For details, see “How to generate a Keypair”.
The key pairs generated by Ravello are in keeping with the OpenSSH file formats for private and public keys, which are supported out-of-the-box on Linux/Mac platforms. For details on how to SSH into a VM with Linux/Mac platforms, see http://support.ravellosystems.com/entries/23245407-How-to-SSH-into-a-VM
Windows not does have a native Windows SSH client. To use these key pairs with Windows, it is necessary to convert the private key from the standard OpenSSH format to PuTTy's proprietary format using the PuTTygen tool.
Note: PuTTy and PuTTyGen can be downloaded from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
To convert keys from OpenSSH (.pem) to PuTTy (.ppk) format
- In the PuttyGen tool, select File > Load Private Key.
- Browse to and select the *pem file that contains the key you want to convert, and click Open.
Note: By default, PuTTYgen displays only files with extension .ppk. Select All Files from the dropdown list to view all file types.
- When the PuTTYgen notice appears advising you to select the Save Private Key command to save it in PuTTy’s proprietary format, click OK .
- Click Save Private Key.
- When prompted to indicate whether you want to save the key without a passphrase, click Yes. The key is saved in .ppk format and can be used to connect to your VM using PuTTy SSH.
To connect to the VM using PuTTy:
- Verify that you have created an external supplied service on the VM, with port 22 open. For details, see "How to add and connect a service" and "How to edit service properties".
- From the Windows Start menu, select All Programs > PuTTY > PuTTY
- In the Host Name field, enter the host name or IP address in the following format:
- In the Category tree, select SSH > Auth.
- Click Browse to locate and select the PuTTY private key file you generated using PuTTyGen.
- Click Open.
Note: If a security alert is displayed asking if you trust the host you are connecting to, click Yes.
- In the SSH session window, log in with the required username (if requested). No password is required because the selected public/private key pair is used for authentication.