This article describes how to connect to a running Linux server using an SSH session with RightScale-managed SSH Keys.
The steps required to set up an SSH connection differ depending on whether you launch your SSH session from within or outside of the RightScale Dashboard, as described below.
Note: If you are using a Windows instance, see RDP into a Server.
If the cloud supports the use of SSH Keys (for example, EC2) you should hide the private key material of all ssh keys from non-Admin users.
The easiest way to SSH into your machines is to use the integrated SSH feature available from the Dashboard.
Note: You must have "server_login" user role privilege in the RightScale account in order to see the SSH icon/button.
To start your SSH session, click the terminal icon next to the instance that you want to access. Your user settings determine your SSH preferences. For example, you can navigate to Settings > User Settings > SSH and select your SSH client preference:
Note: More information on setting up a native SSH client to work with the RightScale Dashboard is available in the article titled How do I configure my native SSH client to work with RightScale?.
The following sections describe how to SSH into an instance using a third party SSH client installed on your machine without launching the SSH session from the RightScale Dashboard. Procedures for using PuTTY on a Windows PC are presented as well as procedures for using SSH from a UNIX, Linux, or Mac OSX terminal application.
If you need to SSH into your instances from a Microsoft Windows machine outside of the RightScale Dashboard, we recommend using PuTTY, a widely used free telnet client. Use the following steps to install PuTTY and configure it for use with RightScale-managed servers outside the RightScale Dashboard.
Install the PuTTY Client and Download Private Key from RightScale
First, you need to install the PuTTY client on your Windows PC workstation and download your private SSH key from RightScale.
Note: The behavior of the Download Private Key link may differ depending on your browser version and settings. For example, some browsers may automatically save the private key file to the default downloads folder on your PC (e.g., c:\Users\<username>\Downloads). The graphic provided above illustrates the behavior when using the Firefox browser.
Convert Private Key to PuTTY-Friendly Format
Now that you have the private key material stored on your local drive, you need to convert it to a format that PuTTY and can understand. By default, the key is generated by RightScale in openSSH format so it must be converted using PuTTYgen before it can be used in PuTTY.
Configure PuTTY to Use SSH Key-based Authentication
There are two ways in which you can configure PuTTY to use the generated key:
The first option is simpler as you do not need to load individual keys, but you are limited to using one key at a time until you update the setting in Auth Options. The second option is more flexible but requires that you select and load a key on every startup of the Pageant application. Both options are described here for your reference, but you can elect to use whichever option you prefer.
Option 1 - Using PuTTY Auth Configuration
Option 2 - Using the Pageant SSH Authentication Agent
PuTTY comprises a powerful set of utilities for managing SSH, telnet, and Rlogin connections to multi-user operating systems. PuTTY is an ideal client for use on Windows PCs that require remote console connection to Linux server systems. The more you work with PuTTY the more you will discover about how to best manage your particular remote login requirements. Here are a few tips that you might find useful.
To SSH into your instance using a terminal application on a Unix, Linux, or Macintosh machine outside of the RightScale Dashboard use the following steps.
chmod 400 <filename>
Example: chmod 400 id_rsa
Example: ssh-add id_rsa
If you are using a RightLink version prior to v5.9 use this command...
ssh -i <key> root@<server public IP address>
Example: ssh -i id_rsa email@example.com
If you are using RightLink v5.9 or greater use this command...
ssh -i <key> rightscale@<ip_address>
Example: ssh -i id_rsa firstname.lastname@example.org
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.