The same route doesn't seem to work here. I add a user-config:
Code: Select all
ssh_pwauth: false
hostname: _host
users:
- name: viktor
ssh_authorized_keys:
- ssh-rsa XXXXXXXXXXXXXXXXXXXXXXXXX
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: true
shell: bash
Code: Select all
## https://cloudinit.readthedocs.io/
ssh_pwauth: yes
users:
- default
ssh_authorized_keys:
- ssh-rsa XXXXXX
- name: viktor
ssh_authorized_keys:
- ssh-rsa XXXXX
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users, admin
shell: bash
disable_root: false
runcmd:
- sed -i -e '$aAllowUsers viktor' /etc/ssh/sshd_config
- restart ssh
My problem is that I'm headless. I don't even have an hdmi cable or keyboard so really need to be able to login via ssh after boot. Anyone had success with this on USB-boot? Just weird that the same thing worked fine with SD…