There are no tags associated with this article.

How to connect to a virtual machine via SSH from Windows 10 (Command Prompt)


1. The private and public keys were created (eg. How to create key-pair in openstack dashboard?). The key files were saved on the local disk of the computer. 

1.1. During the virtual machine creation procedure, the generated key we want to use was indicated. Link to the procedure of creating a virtual machine: How to create new Linux vm in openstack dashboard (horizon)?
For example, when you create an SSH key named "testkey" in the Horizon dashboard, its name will appear next to your VM.

Connecting to a virtual machine via SSH:

2. If your virtual machine has already been assigned a Floating IP (the instances menu next to your virtual machine lists the IP address) you can proceed to the next step. If not, please follow one of the two instructions on how to generate a Floating IP.

2.1.1. Generating Floating IP from External2 Pool: External2

2.1.2. Generating Floating IP from External3 Pool: External3

2.2. Click START button and type "Manage optional features

2.3. Check in "Installed features" if OpenSSH client is installed, if not click Add a feature search for OpenSSH client and install it.

2.4. Run the Command prompt (CMD) and change the folder to the folder where you store the SSH keys.
For example: 

cd c:\Users\JohnDoe\Desktop\sshkeys

2.5. In case of name of your ssh key is id_rsa and the floating IP is type: 

ssh -i id_rsa eouser@

2.6. If the username has changed to eouser@testingssh, the connection has been successfully established.