<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<div dir="auto">
<div dir="auto">Hi Justin</div><div dir="auto"><br></div><div dir="auto">1) Have you tried increasing the log level to DEBUG2 or DEBUG3 ?</div><div dir="auto"><br></div><div dir="auto">2) another way to get more detailed feedback <b>if the above does not tell us</b> (warning: this idea may be a bit tricky because the script nests quite a few commands together on one line) it should be possible to run each of the commands in the script <b>one by one manually. </b>Then you might get better feedback of which command actually fails (at the moment it is a whole 'nest' of commands on one line, that fails and it is hard to see which one is the cause of the failure). Sorry I cannot give more detailed suggestion because I would need to use trial an error and I do not have a similar environment to try it out.</div><div dir="auto"><br></div><div dir="auto">Good luck</div><div dir="auto">Geetam</div><div dir="auto"><span style="background-color: rgb(33, 33, 33); color: rgb(250, 250, 250); font-family: sans-serif; font-size: medium;"><br></span></div><div id="aqm-signature" dir="auto" style="color: black;"><div dir="auto">---</div><div dir="auto">I don't know</div><div dir="auto">...</div><div dir="auto">I don't know what it is</div><div dir="auto">...</div><div dir="auto">I don't know what it is that I don't know</div><div dir="auto"><br></div><div dir="auto">Isn't it beautiful</div><div dir="auto"><br></div></div><div dir="auto"><br></div>
<div id="aqm-original" style="color: black;">
<div dir="auto">On 29 March 2021 19:50:32 Justin B Rye <justin.byam.rye@gmail.com> wrote:</div>
<div><br></div>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">
<div dir="auto">I was hoping some Pi or ssh expert might leap in with the solution at</div>
<div dir="auto">this point, but if not...</div>
<div dir="auto"><br></div>
<div dir="auto">tengo@tutanota.de wrote:</div>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #0099CC; padding-left: 0.75ex;">
<div dir="auto">pi@192.168.0.14's password:  </div>
<div dir="auto">debug1: Authentication succeeded (password). </div>
<div dir="auto">Authenticated to 192.168.0.14 ([192.168.0.14]:22). </div>
<div dir="auto">debug1: channel 0: new [client-session] </div>
<div dir="auto">debug1: Requesting no-more-sessions@openssh.com </div>
<div dir="auto">debug1: Entering interactive session. </div>
<div dir="auto">debug1: pledge: network </div>
<div dir="auto">debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 </div>
<div dir="auto">debug1: Sending environment. </div>
<div dir="auto">debug1: Sending env LANG = en_GB.UTF-8 </div>
<div dir="auto">debug1: Sending command: exec sh -c 'cd ; umask 077 ; mkdir -p .ssh && { [ -z `tail -1c .ssh/authorized_keys 2>/dev/null` ] || echo >> .ssh/authorized_</div>
<div dir="auto">keys ; } && cat >> .ssh/authorized_keys || exit 1 ; if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'</div>
<div dir="auto">```It just hangs at this point.</div>
</blockquote>
<div dir="auto"><br></div>
<div dir="auto">So it seems to think it's made a connection, but when it sends a</div>
<div dir="auto">command to be run at the other end nothing happens?  Well, I suppose</div>
<div dir="auto">the next step is to find out what sshd on the remote server thinks is</div>
<div dir="auto">going on.  This may again need increased verbosity - if there's a line</div>
<div dir="auto">in that machine's /etc/ssh/sshd_config along the lines of</div>
<div dir="auto"> #LogLevel INFO</div>
<div dir="auto">you could change that to</div>
<div dir="auto"> LogLevel DEBUG</div>
<div dir="auto">(then reload/restart/reboot) and then watch the journal messages.</div>
<div dir="auto">-- </div>
<div dir="auto">Justin B Rye</div>
<div dir="auto">http://jbr.me.uk/</div>
<div dir="auto"><br></div>
<div dir="auto">-- </div>
<div dir="auto">EdLUG mailing list</div>
<div dir="auto">EdLUG@mailman.lug.org.uk</div>
<div dir="auto">https://lists.edlug.org.uk/mailman/listinfo/edlug</div>
</blockquote>
</div><div dir="auto"><br></div>
</div></body>
</html>