Skip to content

Instantly share code, notes, and snippets.

@nordineb
Last active October 11, 2017 13:58
Show Gist options
  • Save nordineb/534685ba41b8145f44c596e4eea135e5 to your computer and use it in GitHub Desktop.
Save nordineb/534685ba41b8145f44c596e4eea135e5 to your computer and use it in GitHub Desktop.
RDP to a linux VM
az group create -l westeurope -n testlinuxRG
az vm create -n ubuntuvm -g testlinuxRG --image UbuntuLTS --generate-ssh-keys
### SSH into the VM
sudo apt-get update
sudo apt-get install xfce4
sudo apt-get install xrdp
echo xfce4-session >~/.xsession
sudo service xrdp restart
sudo netstat -plnt | grep rdp
tail -f /var/log/syslog
sudo useradd azureuser
sudo passwd azureuser
exit
az vm open-port --port 3389 --priority 500 -n ubuntuvm -g testlinuxRG
### Remote desktop with sesman-Xvnc
az group delete -n testlinuxRG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment