<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p style="margin-bottom: 0cm; line-height: 100%">Thank you Andrew and Justin for replying. I appreciate your response.
Please find my response below.<br></p><p style="margin-bottom: 0cm; line-height: 100%">@Justin - sorry, but
I'm not following your suggestions due to my lack of knowledge.
Could you simplify it further for me, please? Are you saying that by
"-o LogLevel=VERBOSE" should see more output in stdout when running ssh-copy-id?
If so, I don't see anymore than before. With regard to copying and
editing the script I'm not following that part, sorry.<br></p><p style="margin-bottom: 0cm; line-height: 100%">@Andrew - please
find a response to your questions and suggestions below.<br></p><p style="margin-bottom: 0cm; line-height: 100%">"Usernames:
Are you specifying the user@server in the command, or just letting it
use your current user (the default)?"<br></p><div> Response: I'm ssh'ing using a
user on the pi named 'pi', example "ssh pi@192...", and
using the same with ssh-copy-id, example "ssh-copy-id
pi@192....". I've used this method on both laptops.<br></div><p style="margin-bottom: 0cm; line-height: 100%">"Are you
using it with -i to actively specify the public key to transfer, or
are you letting ssh guess?"<br></p><div>Response: I generally don't use '-i' as I only have
one key on the system. Also, I've not had to use '-i' before and
I don't fully understand its use (I understand the purpose).<br></div><p style="margin-bottom: 0cm; line-height: 100%">"If so,
check what identities it's finding using ssh-add -L."<br></p><div> Response:
Running 'ssh-add -L' on the laptop or Pi(via ssh) produces the
following<br></div><div>>$
sudo ssh-add -L<br></div><div>>Could
not open a connection to your authentication agent.<br></div><p style="margin-bottom: 0cm; line-height: 100%">"As to why it hangs,
I don't know. I'm sure you've already come across this and ruled out
X11 forwarding in your ssh config."<br></p><div> Response: I had seen that post,
but it didn't quite seem like it was the same. However, I can confirm
that the setting is commented out to the default of 'no'('#ForwardX11
no') in "/etc/ssh/ssh_config" on both laptop and Pi (I don't have a
~/.ssh/config on either)<br></div><div><br></div><div>I'll give more thought as to why this occurring.<br></div><div><br></div><div style="16px">-----------<br></div><div><br></div><div><br></div><div><br></div><div>28 Mar 2021, 12:17 by andrew@kember.net:<br></div><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div dir="ltr"><div>That is perplexing. <br></div><div><br></div><div>I don't know the cause of your problem, but the next steps I'd try for debugging are:<br></div><div><ul><li>Given it works from a different laptop (same OS), identify what could be different:<br></li><ul><li>Usernames: Are you specifying the user@server in the command, or just letting it use your current user (the default)?<br></li><li>Are you using it with -i to actively specify the public key to transfer, or are you letting ssh guess?<br></li><ul><li>If so, check what identities it's finding using ssh-add -L<br></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" rel="noopener noreferrer" target="_blank">this</a> and ruled out X11 forwarding in your ssh config.<br></li></ul><div>Let us know what you come up with!<br></div></div><div><br></div><div>Kind regards,<br></div><div>Andrew. <br></div></div><div><br></div><div class=""><div class="" dir="ltr">On Sun, 28 Mar 2021 at 11:39, <<a href="mailto:tengo@tutanota.de" rel="noopener noreferrer" target="_blank">tengo@tutanota.de</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class=""><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><div>--<br></div><div> EdLUG mailing list<br></div><div> <a target="_blank" href="mailto:EdLUG@mailman.lug.org.uk" rel="noopener noreferrer">EdLUG@mailman.lug.org.uk</a><br></div><div> <a target="_blank" rel="noopener noreferrer" href="https://lists.edlug.org.uk/mailman/listinfo/edlug">https://lists.edlug.org.uk/mailman/listinfo/edlug</a><br></div></blockquote></div></blockquote><div><br></div> </body>
</html>