简体   繁体   中英

Azure: connecting to a Windows VM from Linux

I using Azure to create Windows VM. I am able to create VMs, I am able to see that the port 3389 is open but I am unable to connect using rdesktop .

$ rdesktop 40.xx.xx.xx
ERROR: recv: Connection reset by peer

The server was created with the following URN:

MicrosoftWindowsServer:WindowsServer:2012-R2-Datacenter:4.0.20150916

Any idea how to connect to a windows server in azure after you have created the VM ?

EDIT: All installations must be performed completely automated and I am currently using xplat to create the VM:

azure vm quick-create testrgcentral testVM westus Windows MicrosoftWindowsServer:WindowsServer:2012-R2-Datacenter:4.0.20150916 username mysafepassword

I can confirm that the port is open by scanning it with nmap

nmap 40.xxx.xxx.xxx -Pn

If you have made your VM by using "Quick Create" option, you won't have port 3389 as your remote desktop endpoint from security point of view. go to "virtual Machines", select your VM, "EndPoints" -Remote Desktop - Port listed here as "Public Port" will be the port at which the RDP should be working, this port is mapped to the private port 3389 (which is the usual RDP Port)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM