0

Ubuntu cloud image 20.04, ESXi 8

#cloud-config
users:
  - name: demo
    groups: sudo
    shell: /bin/bash
    sudo: ALL=(ALL) NOPASSWD:ALL
    ssh_authorized_keys:
      - ssh-rsa AAAAB3Nz....

so far so good, but when I do

ssh demo@192.168.50.159 

getting

demo@192.168.50.159: Permission denied (publickey).

What Im missing. thanks!

Johny
  • 23
  • what does ssh -v demo@192.168.50.159 tell you? You can do -vv or -vvv to increase the debugging output. – Robert Longson Nov 03 '22 at 01:42
  • @RobertLongson here is the log file: https://drive.google.com/file/d/1NcaO9ea4cOfq0JW2yVlHmn--Eh16oxX5/view?usp=sharing thanks for your help. – Johny Nov 03 '22 at 11:19
  • your client seems to be offering a key, you'll need some debugging from the response to see why it's being rejected. – Robert Longson Nov 03 '22 at 13:00
  • Strange issue honestly. Ive changed the user name - and is working. – Johny Nov 04 '22 at 01:30

0 Answers0