Using RDP with Azure Linux Virtual Machines

Similar documents
The Balabit s Privileged Session Management 5 F5 Azure Reference Guide

USING NGC WITH AZURE. DU _v01 September Setup Guide

Azure 209x Practical Exercises Overview

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes

Gateway Guide. Leostream Gateway. Advanced Capacity and Connection Management for Hybrid Clouds

Network Monitoring & Management. A few Linux basics

MULTI FACTOR AUTHENTICATION USING THE NETOP PORTAL. 31 January 2017

PCoIP Connection Manager for Amazon WorkSpaces

C R E AT I N G A V I R T U A L N ET W O R K K R U N A L T R I V E D I W W W. T E C H T R A I N I N G P O I N T. C O M

Agility2018-TCPdump Documentation

We want to install putty, an ssh client on the laptops. In the web browser goto:

Deploying and Provisioning the Barracuda Application Security Control Center in the New Microsoft Azure Management Portal

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

Using PCF Ops Manager to Deploy Hyperledger Fabric

Load Balancing VMware Workspace Portal/Identity Manager

EASYLAMP UBUNTU V1.0 DOCUMENT OWNER: OUDHUIS, JONATHAN INGRAM MICRO CLOUD EUROPE

Tutorial 1. Account Registration

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

JIRA Integration Guide

UDS Enterprise Free & Evaluation Edition. Lab UDS Enterprise + VMware vsphere + RDP/XRDP

UDS Enterprise Free & Evaluation Edition. Lab UDS Enterprise + VMware vsphere + RDP/XRDP

Dell EMC Avamar Virtual Edition for Azure

Load Balancing Nginx Web Servers with OWASP Top 10 WAF in Azure

Preparing Your Google Cloud VM for W4705

PCoIP Connection Manager for Amazon WorkSpaces

Tableau Server on Microsoft Azure:

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Build your own Lightweight Webserver - Hands-on I - Information Network I. Marius Georgescu. Internet Engineering Laboratory. 17 Apr

Jackson State University Department of Computer Science CSC / Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

Linux application virtualization with UDS Enterprise. Versión Rev. 1

Installing PHP on Windows 10 Bash and Starting a Local Server

Pexip Infinity and Amazon Web Services Deployment Guide

iptables and ip6tables An introduction to LINUX firewall

Pexip Infinity and Microsoft Azure Deployment Guide

Installing Oxwall completely in Amazon Cloud

Dell EMC Avamar Virtual Edition for Azure

The Wonderful World of Services VINCE

MOVEit Transfer on Azure Marketplace Quickstart Guide. How to deploy and use MOVEit Transfer from Microsoft Azure Marketplace

CA Service Desk Integration with Remote Support

Configuration examples for the D-Link NetDefend Firewall series DFL-260/860

Load Balancing Web Servers with OWASP Top 10 WAF in Azure

VMWARE HORIZON CLOUD WITH VMWARE IDENTITY MANAGER QUICK START GUIDE WHITE PAPER MARCH 2018

Microsoft Cloud Workshop. Containers and DevOps Hackathon Learner Guide

Horizon DaaS Platform 6.1 Service Provider Installation - vcloud

Deploy the ExtraHop Explore Appliance in Azure

Linux Essentials Objectives Topics:

Start the Ubuntu Linux VM in VirtualBox. In the VM X Window session, logon as the default user osboxes.

UDS Enterprise- Preparing Templates Xubuntu XRDP UDS Actor

2018 Hands-on Guide. F5 Azure SACA. F5 Networks, Inc.

Enterprise Azure Quick Start Guide v8.3.0

Docker on Windows Server 2016

DBXL AZURE INSTALLATION GUIDE

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

Implementing Infoblox Data Connector 2.0

Installing and Configuring VMware Identity Manager Connector (Windows) OCT 2018 VMware Identity Manager VMware Identity Manager 3.

CHEF MANUAL. Installation and Configuration. SGT, Inc. Innovation Technology Center

Siemens PLM Software. HEEDS MDO Setting up a Windows-to- Linux Compute Resource.

LOCAL WALLET (COLD WALLET):

INUVIKA TECHNICAL GUIDE

InControl 2 Software Appliance Setup Guide

EveryonePrint Integration with Equitrac. Configuration Guide. EveryonePrint Integration with Equitrac Page 1 of 14

FUJITSU Cloud Service S5 Connecting to a Virtual Machine (VM)

Setup Guide: TeraVM on Microsoft Azure. TeraVM Version 11.4

Deploying and Provisioning the Barracuda CloudGen WAF in the Classic Microsoft Azure Management Portal

AZURE SELF-HOSTED INSTALLATION GUIDE

SECURITY+ LAB SERIES. Lab 3: Protocols and Default Network Ports Connecting to a Remote System

Immotec Systems, Inc. SQL Server 2008 Installation Document

Click Studios. Passwordstate. Remote Session Launcher. Installation Instructions

HySecure Quick Start Guide. HySecure 5.0

STRS OHIO F5 Access Client Setup for ChromeBook Systems User Guide

Connect to the Cambridge network

Inception Cloud User s Guide

Deploy the ExtraHop Discover Appliance in Azure

Deploying and Provisioning the Barracuda Web Application Firewall in the New Microsoft Azure Management Portal

Ftp Command Line Manual Windows Example Port 22

Cisco Stealthwatch Cloud. Stealthwatch Cloud Free Trial Guide

Amazon AppStream 2.0: SOLIDWORKS Deployment Guide

Installation Guide. 3CX CRM Plugin for ConnectWise. Single Tenant Version

Flexible Engine. Startup Guide

Lab Guide. Barracuda NextGen Firewall F-Series Microsoft Azure - NGF0501

Lenovo ThinkAgile XClarity Integrator for Nutanix Installation and User's Guide

Cisco Stealthwatch Cloud. Private Network Monitoring Advanced Configuration Guide

Quick Start Guide for Intel FPGA Development Tools on the Microsoft* Azure* Platform

L.A.M.P. Stack Part I

SSL VPN INSTALLATION GUIDE

MeshCentral 2. Installer s Guide. Version July 31, 2018 Ylian Saint-Hilaire

Linux Connection Guide

VMware Identity Manager Connector Installation and Configuration (Legacy Mode)

VII. Corente Services SSL Client

Agent and Agent Browser. Updated Friday, January 26, Autotask Corporation

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

VPN Solutions for Zerto Virtual Replication to Azure. SoftEther Installation Guide

Runecast Analyzer User Guide

Quick Start Guide to Compute Canada Cloud Service

agility17dns Release latest Jun 15, 2017

Application Visibility and Analytics SE Remote Demo Platform Information

Automatic Creation of a Virtual Network with VBoxManage [1]

Reset the Admin Password with the ExtraHop Rescue CD

Chapter 10 Configure AnyConnect Remote Access SSL VPN Using ASDM

How to Deploy a VHD Virtual Test Agent Image in Azure

Transcription:

Using RDP with Azure Linux Virtual Machines 1. Create a Linux Virtual Machine with Azure portal Create SSH key pair 1. Install Ubuntu Bash shell by downloading and running bash.exe file as administrator. Below screenshots shows the process. Create a username and password for UNIX. 1 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com

2. After successful installation, run the following command: ssh-keygen -t rsa -b 2048 3. Click enter to save the generated key in the default location as mentioned in the braces below. That will automatically create a directory. Enter again twice for no paraphrase. That will generate the public key in the location as shown below. Edit the public key in a notepad and copy its contents to clipboard. Log in to Azure portal Log in to azure portal at http://portal.azure.com Create Linux virtual machine 1. Click on New from the upper left-hand corner of the portal and click on Compute as shown below. Then select Ubuntu Server 16.04 LTS. 2. Under the basics tab enter the information as shown below. For the Authentication type, select SSH public key. Then paste the above copied key in the text box as shown below. 2 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com

Make sure to delete any leading or trailing white spaces from the copy. Click OK after filling all other information. 3. In the next Size tab, select a size for the VM. More options are available from the View all button. 4. On the next Settings tab, keep the default values and click OK. 5. On the next Summary tab click OK to start the VM deployment. 3 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com

6. After deployment the VM summary opens up and the VM will be pinned to the Azure portal dashboard. Connect to VM Create an SSH connection 1. Click the Connect button as shown below. An SSH connection string is displayed which is used to connect to the VM. 2. Run the following command in bash and replace the highlighted string with the connection string from the portal. ssh azureuser@40.112.21.50 Install NGINX Use the following bash script to update package sources and install the latest NGINX package. #!/bin/bash # update package source sudo apt-get -y update # install NGINX sudo apt-get -y install nginx Once done exit from bash and return to the Azure portal. Open port 80 for web traffic A Network security group (NSG) secures inbound and outbound traffic. When a VM is created from the Azure portal, an inbound rule is created on port 22 for SSH connections. Because this VM hosts a webserver, an NSG rule needs to be created for port 80. 1. On the virtual machine, click the name of the Resource group (myresourcegroup in this case). 4 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com

2. Select the network security group. The NSG can be identified using the Type column. 3. On the left-hand menu, under settings, click Inbound security rules then click the Add button. 4. In Name, type http. Make sure Port range is set to 80 and Action is set to Allow. Then click OK. Browse to the VM To test out, open a browser and type in the public IP address of the VM that can be found on the VM properties in the Azure portal. All is good if you get a page as shown below. 2. Connect a Linux VM to a remote desktop A remote desktop connection to a Linux VM is useful for quick troubleshooting and for someone new to Linux. The following sections detail the process of setting up a desktop environment and a remote desktop. Install a desktop environment on your Linux VM There are various desktop environments in Linux that can be installed, one of them is a lightweight xfce4 desktop environment. The following example connects to a VM using SSH from bash. ssh azureuser@myvm.westus.cloudapp.azure.com Next, install xfce4 using apt command as follows. This will install a desktop environment. sudo apt-get update sudo apt-get install xfce4 Install and configure a remote desktop server Next step is to install a Remote Desktop Service and xrdp is an open source Remote Desktop Protocol (RDP) server that is available on most Linux distributions, and works well with xfce. Run the below command. 5 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com

sudo apt-get install xrdp The following command configures xrdp to use xfce as the desktop environment. echo xfce4-session >~/.xsession Next is to restart xrdp for the above changes to take effect. sudo service xrdp restart Set a local user account password A local account password is needed to login to VM via xrdp. The following example specifies a password for the user account azureuser: sudo passwd azureuser Create a Network Security Group rule for Remote Desktop traffic To allow Remote Desktop traffic to reach the Linux VM, a network security group (NSG) rule needs to be created that allows TCP on port 3389 to reach the VM. The following example creates NSG rule from Azure CLI. It can also be created from Azure portal as was mentioned in the earlier section above (Open port 80 for web traffic) with the below parameters. az network nsg rule create \ --resource-group myresourcegroup \ --nsg-name mynetworksecuritygroup \ --name mynetworksecuritygrouprule \ --protocol tcp \ --priority 1010 \ --destination-port-range 3389 6 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com

Connect Linux VM with a Remote Desktop client Open your local remote desktop client and connect to the IP address or DNS name of your Linux VM. Enter the username and password for the user account on your VM as follows: After authenticating, the xfce desktop environment will load and look like the following example: 7 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com

Troubleshoot If you cannot connect to your Linux VM using a Remote Desktop client, use netstat command from bash on your Linux VM to verify that your VM is listening for RDP connections as follows: sudo netstat -plnt grep rdp The following example shows that the VM is listening on TCP port 3389: tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 53192/xrdp-sesman tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 53188/xrdp If it s not listening then restart the xrdp service as follows: sudo service xrdp restart Review logs in /var/logthug on your Ubuntu VM for indications as to why the service may not be responding. You can also monitor the syslog during a remote desktop connection attempt to view any errors: tail -f /var/log/syslog If you do not receive any response in your remote desktop client and do not see any events in the system log, this behavior indicates that remote desktop traffic cannot reach the VM. Review your network security group rules to ensure that you have a rule to permit TCP on port 3389. Thanks for checking out this guide for Using RDP with Linux Virtual Machines. If you found it useful, you ll find other Azure courses and resources available at HeroCourses.com or SoftwareArchitect.ca. 8 of 8 2017, Scott Duffy, SoftwareArchitect.ca and HeroCourses.com