cannot access windows azure virtual machine - windows

While configuring one of the subnet IP address (for virtual machine in windows azure), deleted Microsoft Virtual Machine Network Bus adapter and now cannot access the Virtual machine via RDP. Before this I was able to RDP into the virtual machine.
Is there an alternate access to the virtual machine?

Yes you can always try to use your public IP Adresses of your VM and you can establish a SSH connection with command line. In order to connect in SSH you should take these steps on below.
Open your terminal
type: ssh yourusername#youripadress ex: ssh john#192.168.2.3
You will be asked for your password
After this you will be able to connect. If not you should authorize the port 22 SSH in your vm machine configuration.
Second solutions:
-Is to use an Azure Bastion.

Related

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.

Can ping server, but not browse

I'm trying to set up a personal cloud server on a Surface Pro, but I'm running into a networking issue that has me completely stumped.
My setup looks like this: I've installed a Nextcloud server on a VMWare virtual machine that's running Ubuntu 16.04, and I have it configured to use NAT so the virtual machine shares a fixed ip address with the host machine. I've forwarded ports 80, 443, etc. on the host machine's NAT device so requests go to the virtual machine. Additionally I've configured my router to have a static ip address, and I've forwarded all the relevant ports to the Surface Pro on my router.
So the trouble is that I can't connect to my server from my browser. HOWEVER, I am able to ping my server, I can SSH in to both the virtual machine and the host machine from the internet, and I am able to access the server in my browser from any computer that's connected to LAN, no problem.
This all sounds like it could be a firewall issue to me (maybe port 80 is blocked on the host machine for some reason??) but the fact that I have no trouble accessing the server from LAN is confusing the issue, and also deactivating the firewall on the host machine doesn't solve the issue.
Any thoughts?
I solved the problem! It turns out the NAT device was improperly configured to use its own DHCP service rather than using the local DHCP service. Basically it was assigning a LAN IP address 169.254.72.176 to the virtual machine, while everything else was configured to expect that the virtual machine's IP address was fixed at 192.168.34.43.

Remote Desktop in AWS

I just launched a new windows server 2016 virtual machine from EC2 Management Console.
I tried to connect RDP from my desktop (MAC OS) it is not connecting, and even the machine is not pingable from public IP and public domain name.
please the machine is up and running and the from the security group i enable the inbound rules for port 3389
You would need the Microsoft Remote Desktop, the default RDP app will not work and for the ping, you need to enable ICMP protocol in the Security group and then open the windows firewall. Here is a detailed answer

SSH connect from local windows VM to Azure windows VM

I want to have a SSH connection from my local windows machine or VM on my computer to Azure windows server VM. I tried Cygwin and Putty but both of them gave timeout connection. I used public ip address and opened port 22 on Azure VM.
I will appreciate if some one can give me any hints or links.
There are multiple firewalls that can be the reason here. Fist you must have a rule on the server to allow incoming SSH requests (port 22). Then you need to configure the NSG(Network security group) to allow incoming on port 22. If it still doesn't work, you need to verify that you are allowed to do an outgoing SSH request from your computer.
Thanks for suggestions, I found the problem which was the host machine IP address(ipconfig) (where is a local VM inside domain) was different from the IP address that communicate outside the domain to internet. I was set in NSG of Azure VM to only accept this IP and because of that it gave time-out error. After changing the IP it works.

Oracle virtual box acces host and host vpn

I have Oracle virtualbox running on macbook OSX 10.8.2. I have a Windows 8 VM. I would like to accomplish 2 things:
access from the vm the webserver which is running from my host
access from the vm to webservers of my company. I can access these from my host by a VPN, can I access those hosts from my vm via the VPN which is running on my host ?
I tried bridged, host-ony adapters but that didn't do the trick so far.
Regards,
Marc
Bridge adapter should work. How are you trying to access the VMs ? I suppose the IP will be dynamic each time so try it with host name.

Resources