<div dir="ltr">That is perplexing. <div><br></div><div>I don't know the cause of your problem, but the next steps I'd try for debugging are:</div><div><ul><li>Given it works from a different laptop (same OS), identify what could be different:</li><ul><li>Usernames: Are you specifying the user@server in the command, or just letting it use your current user (the default)?</li><li>Are you using it with -i to actively specify the public key to transfer, or are you letting ssh guess?</li><ul><li>If so, check what identities it's finding using ssh-add -L</li></ul></ul><li>As to why it hangs, I don't know. I'm sure you've already come across <a href="https://stackoverflow.com/questions/38179980/ssh-copy-id-hanging-sometimes">this</a> and ruled out X11 forwarding in your ssh config.</li></ul><div>Let us know what you come up with!</div></div><div><br></div><div>Kind regards,</div><div>Andrew. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 28 Mar 2021 at 11:39, <<a href="mailto:tengo@tutanota.de">tengo@tutanota.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
<div>Good morning,<br></div><div><br></div><div>I'm having a problem with the "ssh-copy-id" script and would appreciate some guidance on troubleshooting.<br></div><div><br></div><div>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.<br></div><div><br></div><div>The problem...<br></div><div><br></div><div>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.<br></div><div><br></div><div>If I manually add my SSH key to the Pi I can connect without using a password.<br></div><div><br></div><div>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.<br></div><div><br></div><div>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.<br></div><div><br></div><div>Any suggestions welcome.<br></div><div><br></div><div>Regards,<br></div><div><br></div><div>John<br></div><div>-----------<br></div>  </div>

-- <br>
EdLUG mailing list<br>
<a href="mailto:EdLUG@mailman.lug.org.uk" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
<a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a></blockquote></div>