Fixing Issue #535
This commit is contained in:
		| @@ -266,8 +266,10 @@ resource "azurerm_virtual_machine" "logger" { | ||||
|     } | ||||
|     inline = [ | ||||
|       "sudo add-apt-repository universe && sudo apt-get -qq update && sudo apt-get -qq install -y git", | ||||
|       "sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config && sudo service ssh restart", | ||||
|       "echo 'logger' | sudo tee /etc/hostname && sudo hostnamectl set-hostname logger", | ||||
|       "sudo adduser --disabled-password --gecos \"\" vagrant && echo 'vagrant:vagrant' | sudo chpasswd", | ||||
|       "echo 'vagrant:vagrant' | sudo chpasswd", | ||||
|       "sudo mkdir /home/vagrant/.ssh && sudo cp /home/ubuntu/.ssh/authorized_keys /home/vagrant/.ssh/authorized_keys && sudo chown -R vagrant:vagrant /home/vagrant/.ssh", | ||||
|       "echo 'vagrant    ALL=(ALL:ALL) NOPASSWD:ALL' | sudo tee -a /etc/sudoers", | ||||
|       "sudo git clone https://github.com/clong/DetectionLab.git /opt/DetectionLab", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Chris Long
					Chris Long