You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

If you've created a Windows virtual machine, you obviously can't log into it through SSH. You need to access it through RDP. The steps for creating a Windows virtual machine are exactly the same as for every *nix image in the cloud - including the keypair part. To log in, you will need to add a security group that allows incoming RDP on the standard TCP port 3389 to your machine.

larsep@access:~$ openstack security group rule create --protocol tcp --ingress --dst-port 3389 default
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| created_at        | 2017-08-10T07:12:43Z                 |
| description       |                                      |
| direction         | ingress                              |
| ethertype         | IPv4                                 |
| headers           |                                      |
| id                | 01a192a8-b0b6-4944-8561-251f0f9e03ca |
| port_range_max    | 3389                                 |
| port_range_min    | 3389                                 |
| project_id        | e150a84ec8684a79a7ccd175138ad477     |
| project_id        | e150a84ec8684a79a7ccd175138ad477     |
| protocol          | tcp                                  |
| remote_group_id   | None                                 |
| remote_ip_prefix  | 0.0.0.0/0                            |
| revision_number   | 1                                    |
| security_group_id | 68c22b5c-eda0-4f1a-a59d-fa4feac1c0e2 |
| updated_at        | 2017-08-10T07:12:43Z                 |
+-------------------+--------------------------------------+

Our Windows images will disable the default Administrator user, and create a new user called "Admin." The password is randomly generated at boot, and will be encrypted with the public key provided at server creation time. To fetch the password, run the following command:

larsep@access:~$ nova get-password <vm-name> .ssh/id_rsa
<your password for the Admin user>

You should now have everything you need to access the Windows machine through RDP. To achive this, you need to create an SSH tunnel via the skyhigh.hig.no jumphost. Example from a linux client (PuTTy would be different...):

larserik@sarah:~$ ssh -f -L 13389:<windows floating ip>:3389 <username>@skyhigh.hig.no -N

This will forward localhost:13389 to <windows floating ip>:3389 , and you will be able to connect to your Windows virtual machine via localhost:13389 via your favourite RDP client.

  • No labels