[EdLUG] SSH - ssh-copy-id problem | RPi | Ubuntu.

Andrew Kember andrew at kember.net
Sun Mar 28 11:18:40 UTC 2021


That is perplexing.

I don't know the cause of your problem, but the next steps I'd try for
debugging are:

   - Given it works from a different laptop (same OS), identify what could
   be different:
      - Usernames: Are you specifying the user at server in the command, or
      just letting it use your current user (the default)?
      - Are you using it with -i to actively specify the public key to
      transfer, or are you letting ssh guess?
         - If so, check what identities it's finding using ssh-add -L
      - As to why it hangs, I don't know. I'm sure you've already come
   across this
   <https://stackoverflow.com/questions/38179980/ssh-copy-id-hanging-sometimes>
   and ruled out X11 forwarding in your ssh config.

Let us know what you come up with!

Kind regards,
Andrew.

On Sun, 28 Mar 2021 at 11:39, <tengo at tutanota.de> wrote:

> Good morning,
>
> I'm having a problem with the "ssh-copy-id" script and would appreciate
> some guidance on troubleshooting.
>
> I have a Raspberry 3B+ running the latest Raspbian/RaspberryOS. I like to
> SSH to the Pi without using a password and I'm therefore using SSH keys.
>
> The problem...
>
> I can SSH to the Pi with a password, but when I use ssh-copy-id to copy my
> SSH key it simply hangs. No crash, no error, just hangs. I can see the SSH
> connection/authentication is successful from following the journal on the
> Pi. It seems the copy doesn't complete.
>
> If I manually add my SSH key to the Pi I can connect without using a
> password.
>
> Any suggestions as to why this is happening? ssh-copy-id doesn't seem to
> have an option to provide a verbose output that would allow me to see where
> it's hanging.
>
> I tried the ssh-copy-id from another laptop, running Ubuntu 20.04, and it
> worked fine. As did running a simple ansible ad-hoc command. Even the SSH
> extension for VS code worked. This led me to try installing a fresh OS on
> the original laptop. The laptop I was trying to connect from was running
> Ubuntu 20.04. I've since installed Kubuntu 20.04 (I wanted to try KDE
> anyway) and still the same issue is occurring.
>
> Any suggestions welcome.
>
> Regards,
>
> John
> -----------
> --
> EdLUG mailing list
> EdLUG at mailman.lug.org.uk
> https://lists.edlug.org.uk/mailman/listinfo/edlug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20210328/96155e77/attachment.html>


More information about the EdLUG mailing list