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!

EDIT: OKAY. I fixed it. I appreciate all the help I received. I still really could not figure out what the actual issue is. But I did have some extra ssh keys that I wasn’t using from old machines and after I deleted those and readded my key everything seems to work

  • r0ckr@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Try running this command on your target system:

    cat $HOME/.ssh/authorized_keys

    Does the private key part of your key pair show up in the list?