cannot connect to azure machine using remote desktop - windows

i create a win2012r2 datacenter vm on azure. i'm trying to connect via RDC but rdc cannot connect. i use the rdp file that azure provide, and also tryied to do it by myself manually in rdc (dns:port and also ip:port) but still i can't connect. how to check where the problem is?
Thanks

Are you in a Crop. network? I means did you check the firewall settings on your side? And kindly reminder, the default RDC port is NOT 3389.

Related

Global Protect and Azure VM

I would like to connect to Global protect on my azure virtual machine. installation is not an issue. but when I connect to VPN, I get disconnected from VM and when connection comes back global protect is no longer connected.
Can anyone help ?
I'm running into the same problem but only when I use the Azure VPN P2S Gateway. I have other VMs in Azure that do not use the Azure VPN GW and I don't encounter any issues using Global Protect.
I found this article detailing why it's happening and some workarounds. The "Nested Remote Desktop Connection" option worked for me though it's not ideal. I'm reading through the "Configure a Source NAT on the Router" option and trying to figure out how to apply it using the Azure VPN GW.
https://knowledgebase.paloaltonetworks.com/kCSArticleDetail?id=kA14u000000HAoM

Steps required to SSH into Azure Windows VM from a Linux VM

Having created a Windows Azure VM and opened ports 3389 and 22 for inbound RDP and SSH connections, respectively.
I can successfully connect to the vm via RDP from a remote Windows PC.
Testing SSH connection in the Portal succeeds. However trying to connect from a remote Linux VM using SSH fails.
Given that SSH connection test within the portal succeeds, it suggests that (1) it is possible to SSH into a windows VM; and (2) there is no other config require on the server ie installing OpenSSH (or similar) / Copying over key file(s) to some location etc. However, the help steps in the Azure Portal for my Windows VM, for making remote SSH connections suggest that maybe a public key needs to exist on the server and that I need the private key on the LinuxVM I am trying to connect from.
Please could someone help me understand if ssh into windows Azure VM is possible and if so, the requirements / minimum set of steps (on the target Windows VM and the source Linux VM) I need to get to a state that I can successfully SSH.
Other posts re similar question posted have not helped me connect via ssh. I have not found a 'golden source of truth' on Microsoft docs. Maybe I missed it.
Thank you.
A Windows Server doesn’t typically come pre-built and ready to go with SSH access and it requires some setup. You can follow this to set up your Azure VM for SSH access. You can configure SSH on a Windows Azure VM for access, check out How to Set Up OpenSSH on a Windows Server. After deploying the OpenSSH, you can follow the steps about connect via SSH with client in the Azure portal on your Linux client to access that Windows VM via SSH.

How to rdp from mac to azure vm through vnet gateway

I am trying to rdp from my local mac to an Azure instance through a (IKEv2) vpn connection. I am never prompted for a password, and it looks like the connection just times out. The error code I get is 0x204.
I have tried using both Microsoft Remote Desktop 8 and 10 for mac.
The connection is active and reports that it is connected.
From the mac, I can connect to another VM (in the same azure account) which is not running behind a vpn.
From Parallels Desktop (with networking set to Shared mode and the vpn connection active on the mac), I can successfully connect using the windows rdp client.
So it seems the Microsoft RDP-client for mac is not using the vpn connection.
Is there a way to make it do so?
Is there another solution, that will allow me to rdp to an Azure VM from my mac (without going through Parallels)?
Note: This is not the same question as this, since that is not about going through an azure vnet gateway.
I needed to add hosts file entries for each azure site I needed to access.
For example for accessing my-vm-name.someregion.cloudapp.azure.com, I needed to add a hosts file entry for it's private IP within the subnet. E.g. 10.2.0.100.
The reason everything worked in Windows under Parallels, is that the relevant entries had already been added to the hosts file previously.

How do I RDP into an Azure windows VMSS

I have a VMSS which is not connected to a load balancer running windows 2016 server edition operating system. How can I RDP into this setup? Is port 3389 open by default?
If you use Azure image to create VMSS, you can create a windows VM work as a jumpbox in that same Vnet.
If you use image which upload from your local, please make sure you have enable RDP first, then you can use another VM to RDP it via internal IP address.
If you image does not enable RDP, please re-prepare your image and enable RDP, then upload to Azure to create a new VMSS.
Another way to do this is to go to your vnet, search for your vm scale set and you should be able to see the IP.

Connect to WebMin from external network

I have set up a new NAS using Open Media Vault. I have installed the WebMin extension to get on to the web gui for configuration. My problem is that I have to be on the same network as my NAS. How can I connect to my NAS from a different network than it is connected to? On the network that it is connected to its IP is 192.168.0.99:1000 for the WebMin gui. How can I access this from a different network?
Setup a VPN to connect to the network that your NAS is on. Once the VPN is connected you can connect to the NAS as if you were on the local network.
You could also possibly setup firewall and/or port forwarding rules depending on how your network is setup but please consider the security issues when doing so.
You could alternatively also try to open the NAS and give it a public IP address and a DNS. This will allow you to setup SSH and FTP as it was any other server.
To SSH remotely over the internet, you need either a permanent IP address or a domain name that is updated to point to the IP address when it changes. The latter requires a dynamic domain name service. A good free one is DuckDNS (duckdns.org). First, use one of the sign-in options such as Google. In the domain line enter your preferred subdomain name.
There is a great guide on how you can do this here: https://forums.freenas.org/index.php?threads/how-to-how-to-access-your-freenas-server-remotely-and-securely.27376/

Resources