Connecting to the ThousandEyes Virtual Appliance Using SSH (Windows)
In order to access the command line of a ThousandEyes Virtual Appliance or Physical Appliance, the Appliance can be configured with one or more SSH public keys. An SSH client configured with the corresponding SSH private key can then log into the Appliance's command line.
This article provides instructions for users of a Microsoft Windows operating system to perform the following steps:
Obtain an SSH client
Create an SSH key pair
Configure the ThousandEyes Appliance
Create an SSH connection
Obtain an SSH Client
An SSH application such as PuTTY is required. Download the latest PuTTY installer (normally the 64-bit MSI) to install the PuTTY suite of programs, most relevantly:
PuTTY (putty.exe): An SSH client
PuTTYgen (puttygen.exe): An SSH key generator
(Optional) PSCP (pscp.exe): A command-line Secure Copy Protocol client, for copying files from the Appliance
Run the MSI installer to installer once the MSI file has been downloaded. Alternatively, individual executables may be downloaded separately from the PuTTY site.
Create an SSH Key Pair
If you don't already have an SSH key pair (public key and matching private key), you'll need to generate one using PuTTYgen. Open the PuTTYgen program, and follow the steps below.
In the PuTTY Key Generator window, select the RSA key option and then click the Generate button:
Move your mouse back and forth inside the Key field to generate randomness.
(Optional) Add a passphrase using the fields provided, if desired.
Highlight the public key and copy to the clipboard:
Save your public and private keys using the Save public key and Save private key buttons. Note the directory or directories where you save the keys. You'll need the path to the private key for the PuTTY SSH client.
Configure the ThousandEyes Appliance
The public key of a user's SSH key pair must be present on each agent that is to be accessed. Log into the web interface of a ThousandEyes Appliance, then follow the steps below to configure the Appliance with your public key.
On the Appliance Access tab, paste the key that was copied in step 4 of the SSH key creation section into the Add New SSH key field.
NOTE: When pasting the key, make sure the string ssh-rsa
that prepends the key is present, or the key won't be accepted as valid (see the screenshot below for the correct format of the key).
The key will be added with the identifying string that follows the key:
Add Key Failures
If the key addition fails, most failures are caused by unnecessary beginning and ending lines, comment fields or carriage returns/line feeds. For example, the file saved by the PuTTY Key Generator contains beginning and ending lines and comment fields that need to be removed in order to have a valid public key format:
If you copy the public key from the saved file rather than from the PuTTYGen window in step 4 of the Create an SSH key pair section, remove the BEGIN and END lines, the Comment: line(s) and any carriage return, new line or line feed characters. The correct format should look like this:
If attempts are failing despite following these instructions, then copy the above example and attempt to add it. If the example key addition is successful, the failure is likely due to a carriage return, new line or line feed character that remains in the newly generated key.
The example key can be immediately deleted by clicking the button to the right of the key, in the listing of keys added to the Appliance.
Create an SSH Connection
Once a public key has been installed on the Appliance, follow the instructions below to configure PuTTY and log into the command line of the Appliance.
Run the PuTTY program (putty.exe).
In the PuTTY Configuration window's Category section, open the Connection > Data panel.
Enter the username "thousandeyes" in the Auto-login username field.
In the PuTTY Configuration window's Category section, open the Connection > SSH > Auth panel.
Click Browse and navigate to the location selected in Step 5 of the Create an SSH key pair section above.
In the PuTTY Configuration window's Category section, open the Session panel.
Enter the IP address or hostname of the Enterprise Agent in the Host Name (or IP address) field.
Enter a name for this PuTTY session in the Saved Sessions field.
Click Save to save the session for future uses.
Click Open to open the SSH connection to the Appliance's command line.
If a passphrase was created in Step 3 of the Create an SSH key pair section, provide the passphrase to the SSH key.
If the login is successful, the prompt "thousandeyes@appliance_hostname:~ appears, indicating the user is in the home directory of the "thousandeyes" user.
Now you're SSH'd in. Have fun!
Troubleshooting
Connection problem symptoms when using PuTTY SSH client:
Error: Server unexpectedly closed network connection
error messagefatal: no matching mac found:...
error message
Solution: Make sure that PuTTY is at the current version as these errors have been encountered when using older versions of PuTTY.
Last updated