<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
<div>Thanks for the explanation, it's very helpful.<br></div><div><br></div><div> I run "<span style=""><span class="font" style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">bash -x /usr/bin/ssh-copy-id pi@192... -o LogLevel=DEBUG"</span></span></span> and although it provided a lot of output it doesn't  seem to highlight any issues (to my untrained eye). It seems to show the script running through checking if any keys are already there, prompting me for the user's password, then hanging. Very frustrating.<br></div><div><br></div><div>Although there's a lot more before this output here's a sample from the end of the output:<br></div><div>```<br></div><div><span style=""><span class="font" style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">pi@192.168.0.14's password:  </span><br>debug1: Authentication succeeded (password). <br>Authenticated to 192.168.0.14 ([192.168.0.14]:22). <br>debug1: channel 0: new [client-session] <br>debug1: Requesting <a href="mailto:no-more-sessions@openssh.com">no-more-sessions@openssh.com</a> <br>debug1: Entering interactive session. <br>debug1: pledge: network <br>debug1: client_input_global_request: rtype <a href="mailto:hostkeys-00@openssh.com">hostkeys-00@openssh.com</a> want_reply 0 <br>debug1: Sending environment. <br>debug1: Sending env LANG = en_GB.UTF-8 <br>debug1: Sending command: exec sh -c 'cd ; umask 077 ; mkdir -p .ssh && { [ -z `tail -1c .ssh/authorized_keys 2>/dev/null` ] || echo >> .ssh/authorized_<br>keys ; } && cat >> .ssh/authorized_keys || exit 1 ; if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'<br>```</span></span></div><div>It just hangs at this point.<br></div><div style="16px">-----------<br></div><div><br></div><div>28 Mar 2021, 14:01 by justin.byam.rye@gmail.com:<br></div><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div>tengo@tutanota.de wrote:<br></div><blockquote><div>@Justin - sorry, butI'm not following your suggestions due to my<br></div><div>lack of knowledge.Could you simplify it further for me, please? Are<br></div><div>you saying that by"-o LogLevel=VERBOSE" should see more output in<br></div><div>stdout when running ssh-copy-id? If so, I don't see anymore than<br></div><div>before.<br></div></blockquote><div><br></div><div>It would send extra debug output to stderr, not stdout, and you might<br></div><div>need to step it up to LogLevel=DEBUG or higher (DEBUG2, DEBUG3).<br></div><blockquote><div>With regard to copying andediting the script I'm not following<br></div><div>that part, sorry.<br></div></blockquote><div><br></div><div>You're running a bash script - an executable text file.  Instead of<br></div><div>just running "ssh-copy-id" (i.e. /usr/bin/ssh-copy-id), you could copy<br></div><div>that file to somewhere else, edit that version, and invoke the amended<br></div><div>version.  Come to that, to make bash provide its own commentary on<br></div><div>what it's doing (so you can see exactly what it's trying to do when it<br></div><div>hangs), you don't need to edit it when you can invoke it as<br></div><div><br></div><div> bash -x /usr/bin/ssh-copy-id<br></div><div><br></div><div>-- <br></div><div>Justin B Rye<br></div><div>http://jbr.me.uk/<br></div><div><br></div><div>-- <br></div><div>EdLUG mailing list<br></div><div>EdLUG@mailman.lug.org.uk<br></div><div>https://lists.edlug.org.uk/mailman/listinfo/edlug<br></div></blockquote><div><br></div>  </body>
</html>