fix: users on vm's
This commit is contained in:
@ -3,6 +3,10 @@ local-hostname: ${hostname}
|
||||
|
||||
users:
|
||||
- name: testuser
|
||||
ssh-authorized-keys:
|
||||
- ${azure_ssh_public_key}
|
||||
groups: sudo
|
||||
shell: /bin/bash
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
ssh_authorized_keys:
|
||||
- ${azure_ssh_public_key}
|
||||
lock_passwd: true
|
||||
passwd: ""
|
||||
|
@ -18,7 +18,7 @@ write_files:
|
||||
content: |
|
||||
Host azurevm
|
||||
HostName ${azure-vm-ip}
|
||||
User iac
|
||||
User testuser
|
||||
IdentityFile ~/.ssh/azure
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile=/dev/null
|
||||
|
Reference in New Issue
Block a user