I have a new machine running debian sid on which I generated a new ssh key-pair. I wanted to find a convenient way to copy this new key-pair to various other machines using my old Ubuntu machine and its key-pair. I have disabled password logins for all the "remote" machines, so I wanted to use the old machine as an intermediate. While researching this, I found the exact situation given as an example in the manual page for
ssh-copy-id. I followed the example to access a pi zero running
pihole, but got the error in the post title.
ssh -v pihole, I do see the output
debug1: Server accepts key: /home/sarp/.ssh/id_rsa RSA SHA256:V74Y4EhlszaIzco6oxOtl86ALj/U8rhXO2XUpEftZLU agent
I read through various posts on this topic, but none of the solutions worked for me. Here are some details/things I have tried:
- Permissions are correct for
- I am not running gnome-keyring-daemon:
/tmp/ssh-a8Ol5O0XY9Fv/agent.1326, and I don't see the keyring daemon running through
ssh-add -lcorrectly displays the two keys as can be see in the first picture (one from the old machine, the other from the new machine)
- I just copied the
.ssh/configfrom the old machine, so the hostname/username/etc. should be fine.
Let me know if I should provide additional useful info, and apologies if it is something very obvious, but what am I missing here?