Skip to main content

Posts

Showing posts from July, 2018

Installing Docker on Azure (Linux) Virtual Machine

Step 1. Update the apt package index: sudo apt-get update Step 2. Install packages to allow apt to use a repository over HTTPS: sudo apt-get install \     apt-transport-https \     ca-certificates \     curl \     software-properties-common Step 3. Add Docker’s official GPG key: curl -fsSL https://download.docker.com/ linux/ubuntu/gpg | sudo apt-key add - Step 4. Set up the stable repository (command depends on system architecture): sudo add-apt-repository \     "deb [arch=amd64] https://download.docker.com/ linux/ubuntu \     $(lsb_release -cs) \     stable" Step 5. Update the package index again: sudo apt-get update Step 6. Install the docker-ce package (the service should start automatically after installation): sudo apt-get install docker-ce Step 7. Verify that docker installed properlty: sudo docker run hello-world

Solving SSH connection issue with Linux Virtual Machine in Azure

I created a Linux Virtual Machine in Azure, but connecting to it through SSH was a real nightmare. I was always getting the below error - "Permission denied (publickey)."  After lot of googling, binging and shooting in the dark, this is how I fixed the problem: Create a new ssh key by running below command.            PS: Do not change the default name or path of generated ssh key.           ssh-keygen -t rsa -b 2048           Generating public/private rsa key pair.           Enter file in which to save the key (/c/Users/<Username>/.ssh/id_rsa):           Enter passphrase (empty for no passphrase):           Enter same passphrase again:           Your identification has been saved in /c/Users/ <Username> /.ssh/id_rsa.           Your public key has been saved in /c/Users/ <Username> /.ssh/id_rsa. pub In Azure portal. Click on your Virtual Machine name,  Select ' Reset Password -> ' Reset SSH ' -> ' Reset SSH