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

Justin B Rye justin.byam.rye at gmail.com
Mon Mar 29 18:50:23 UTC 2021


I was hoping some Pi or ssh expert might leap in with the solution at
this point, but if not...

tengo at tutanota.de wrote:
> pi at 192.168.0.14's password:  
> debug1: Authentication succeeded (password). 
> Authenticated to 192.168.0.14 ([192.168.0.14]:22). 
> debug1: channel 0: new [client-session] 
> debug1: Requesting no-more-sessions at openssh.com 
> debug1: Entering interactive session. 
> debug1: pledge: network 
> debug1: client_input_global_request: rtype hostkeys-00 at openssh.com want_reply 0 
> debug1: Sending environment. 
> debug1: Sending env LANG = en_GB.UTF-8 
> debug1: Sending command: exec sh -c 'cd ; umask 077 ; mkdir -p .ssh && { [ -z `tail -1c .ssh/authorized_keys 2>/dev/null` ] || echo >> .ssh/authorized_
> keys ; } && cat >> .ssh/authorized_keys || exit 1 ; if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'
> ```It just hangs at this point.

So it seems to think it's made a connection, but when it sends a
command to be run at the other end nothing happens?  Well, I suppose
the next step is to find out what sshd on the remote server thinks is
going on.  This may again need increased verbosity - if there's a line
in that machine's /etc/ssh/sshd_config along the lines of
	#LogLevel INFO
you could change that to
	LogLevel DEBUG
(then reload/restart/reboot) and then watch the journal messages.
-- 
Justin B Rye
http://jbr.me.uk/



More information about the EdLUG mailing list