How to connect to a virtual machine via SSH from Windows 10 Command Prompt on EO-Lab

Requirements

Both private and public keys were created and saved on the local disk of your computer. (How to Create Key Pair in OpenStack Dashboard on EO-Lab)

During the virtual machine creation procedure, the generated key was attached. (How to Create New Linux VM in OpenStack Dashboard Horizon on EO-Lab)

A floating IP was assigned to your VM. (How to add or remove Floating IPs to your VM on EO-Lab)

Next, please check under “Installed features” on your Windows machine, whether the OpenSSH client is installed. The easiest way to do this is by searching for “Features” in the Start-menu and then selecting “Optional Features” if it’s not an item in the first list. If it’s not installed yet, click Add a feature, look for OpenSSH client and install it.

../_images/c1.png

Step 1 Open the folder containing your SSH keys

Run the Command Prompt and change the current folder to the folder where you store your keys.

For example:

cd c:\Users\wikit\sshkeys

Step 2 Connect to your VM using SSH

If the name of your key is id_rsa and the floating IP of your virtual machine is 64.225.129.203, type the following command:

ssh -i id_rsa [email protected]

Let’s assume for this tutorial, that the name of your virtual machine is test. If the text before the cursor changed to eouser@test, the connection was successfully established. Before that, you may get the message that the authenticity of the host can’t be established and the following question:

Are you sure you want to continue connecting (yes/no/[fingerprint])?

If you get that message, it typically means that your computer has never connected to that VM via SSH before and you should confirm that you are willing to connect by entering “yes”, followed by Enter.

You should now be able to issue commands to your VM:

../_images/c4.png