https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    11/22/2024, 3:55 PM
    wtf.
  • v

    VoxBot

    11/22/2024, 3:56 PM
    jfc
  • v

    VoxBot

    11/22/2024, 3:56 PM
    happy Friday?
  • v

    VoxBot

    11/22/2024, 3:56 PM
    :)
  • v

    VoxBot

    11/22/2024, 3:56 PM
    I'm happy to help, let me know where I shall send the invoice to
  • v

    VoxBot

    11/22/2024, 3:56 PM
    $.02?
  • v

    VoxBot

    11/22/2024, 3:57 PM
    bastelfreak: i wasn't in the loop on that, but i'm happy to discuss specifics
  • v

    VoxBot

    11/22/2024, 3:57 PM
    :D
  • v

    VoxBot

    11/22/2024, 3:58 PM
    i haven't hallucinated this
  • v

    VoxBot

    11/22/2024, 3:58 PM
    this has failed, because of a permission denied
  • v

    VoxBot

    11/22/2024, 3:58 PM
    maybe wrong perms on the directory
  • v

    VoxBot

    11/22/2024, 3:58 PM
    /var/log/auth.log:Nov 21 210846 backup-storage-01/backup-storage-01 sshd[1818809]: Could not open user 'pgbackrest-weather-01' authorized keys '/etc/ssh/puppetkeys/pgbackrest-weather-01': Permission denied
  • v

    VoxBot

    11/22/2024, 3:58 PM
    those are important as well
  • v

    VoxBot

    11/22/2024, 3:58 PM
    if it was EL I'd ask if was SELinux
  • v

    VoxBot

    11/22/2024, 4:00 PM
    okay, so i can reproduce here
  • v

    VoxBot

    11/22/2024, 4:00 PM
    chmod 600 /etc/ssh/puppetkeys/pgbackrest-weather-01
  • v

    VoxBot

    11/22/2024, 4:00 PM
    fail
  • v

    VoxBot

    11/22/2024, 4:00 PM
    chmod 444 /etc/ssh/puppetkeys/pgbackrest-weather-01
  • v

    VoxBot

    11/22/2024, 4:00 PM
    success
  • v

    VoxBot

    11/22/2024, 4:00 PM
    file is root:root
  • v

    VoxBot

    11/22/2024, 4:00 PM
    can you share your sshd config?
  • v

    VoxBot

    11/22/2024, 4:00 PM
    directory is 755 root:root all the way up to /
  • v

    VoxBot

    11/22/2024, 4:00 PM
    sure
  • v

    VoxBot

    11/22/2024, 4:01 PM
    https://paste.anarc.at/publish/2024-11-22-S1ADUsxAuM5his6uZN35hU7Lvrc8uFFXMk5R5IXIp1U/stdin.txt
  • v

    VoxBot

    11/22/2024, 4:01 PM
    /etc/ssh/ssh_config.d/ is empty
  • v

    VoxBot

    11/22/2024, 4:02 PM
    now check this out
  • v

    VoxBot

    11/22/2024, 4:02 PM
    the config is AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more /etc/ssh/puppetkeys/%u
  • v

    VoxBot

    11/22/2024, 4:02 PM
    if i chmod 600 in userkeys, that's not a problem
  • v

    VoxBot

    11/22/2024, 4:02 PM
    if i chmod 600 in puppetkeys that is where it fails
  • v

    VoxBot

    11/22/2024, 4:02 PM
    so it looks like ssh is treating those things differently depending on where they are in the AuthorizedKeysFile list
1...627628629...648Latest