Score:0

Ubuntu, Cloud-init, Permission denied (publickey)

id flag

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!

us flag
what does ssh -v demo@192.168.50.159 tell you? You can do -vv or -vvv to increase the debugging output.
Johny avatar
id flag
@RobertLongson here is the log file: https://drive.google.com/file/d/1NcaO9ea4cOfq0JW2yVlHmn--Eh16oxX5/view?usp=sharing thanks for your help.
us flag
your client seems to be offering a key, you'll need some debugging from the response to see why it's being rejected.
Johny avatar
id flag
Strange issue honestly. Ive changed the user name - and is working.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.