Connecting to the ThousandEyes Virtual Appliance Using SSH (Mac/Linux)
In order to connect to the ThousandEyes VA, you first need to configure the Virtual Appliance with an SSH public key.
Generate an SSH Key
Step 1: Check for SSH Keys
First, we need to check for existing ssh keys on your computer. Open a terminal session and run:
If it says "No such file or directory" go to step 2. Otherwise, you already have an existing keypair, and you can skip to step 3.
Step 2: Generate a New SSH Key
To generate a new SSH key, enter the code below. We want the default settings so when asked to enter a file in which to save the key, just press enter.
Now you need to enter a passphrase.
Which should give you something like this:
Step 3: Add Your SSH Key to the VA
Copy the contents of the public key to your clipboard. The following command can be used on Mac OS X to do so:
On Linux, you can display the public key in a console with the following command:
Copying part is done by selecting the whole public key (starting with "ssh-..." and ending with "...== your@email.com", where "your@email.com" can be anything - it is essentially a comment to distinguish this particular public key from others). Once selected, use combination of "Ctrl+Shift+C" keys to copy selected text to your clipboard.
Copy the Public Key to the ThousandEyes VA
Access the web interface of the Virtual Appliance, and navigate to the Appliance Access tab, then copy the public key (which should be on your clipboard) into the "Add New SSH key" text widget.
The text will show as green if it validates successfully, or red if there is a problem. For most circumstances where there is a problem, remove trailing line feeds.
Create an SSH Connection to the ThousandEyes VA
Once you have a valid public key on the ThousandEyes VA, you can connect. Connections are established to the VA using the thousandeyes user account, with the passphrase specified while creating the SSH key:
The first time you connect to the target virtual appliance, your system will note that the identity has been added.
It is strongly recommended that you use static IP addresses for agents in this circumstance, in order to prevent host key checking problems. When you connect, you'll get a warning similar to the one below:
Once you accept, you're locked into using that IP address unless you modify your list of known hosts. After adding the host, you'll be directed to the home directory of the ThousandEyes VA user.
Now you're SSH'd in. Have fun!
Portions of this text graciously borrowed from GitHub at https://help.github.com/articles/generating-ssh-keys
Last updated