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.
To sum up my steps from that example, where debian
is the machine with the new key-pair, sarp.lan
is the machine with the old key-pair and pihole
is the "remote" machine, I did:
However, running 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
.ssh/
- I am not running gnome-keyring-daemon:
echo $SSH_AUTH_SOCK
returns/tmp/ssh-a8Ol5O0XY9Fv/agent.1326
, and I don't see the keyring daemon running throughps aux
. ssh-add -l
correctly 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/config
from 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?