Are there any reasons to get a pubkey denied after you run ssh-copy-id onto your server? I’ve already restarted the sshd service but I still get pubkey denied after I copied my ssh I.D. to my server. I am thinking about just removing all the keys I have on the server and re-adding them but I was hoping someone else may have an idea before I do that. Thanks!

  • Matt@netmonkey.tech
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Same. I’ve never had it screw up before, but the only thing I can imagine is that something’s not right with the keys.

    As an aside, I did recently create a new server, and somehow managed to completely ignore the errors in ssh-copy-id. Turns out I forgot to use -m (to create my home directory) in useradd when I went to create my personal account. Oops!