Strange problems with GCC compile farm nodes gcc210 and gcc211

Dagobert Michelsen dam at opencsw.org
Fri May 21 12:43:36 CEST 2021


Hi Jacob,

Am 19.05.2021 um 05:33 schrieb Jacob Bachmeyer via buildfarm <buildfarm at lists.opencsw.org>:
> 1.  A "git push" to a repository on gcc210 (gcc-solaris10) fails with "sh: git-receive-pack: not found" and "ssh gcc210 env" gives a clue: PATH=/usr/bin:/bin
> 
> Shell sessions there have "PATH=/usr/sbin:/usr/bin:/opt/csw/bin" and (of course, according to Murphy) `which git-receive-pack` returns "/opt/csw/bin/git-receive-pack".  I would like to request that /opt/csw/bin be added to the PATH set by sshd if that is possible.

I have now added
  PATH=/usr/bin:/opt/csw/bin
to /etc/default/login and it works for me now on gcc210 and gcc211:
  dmichelsen at Andromeda-45 ~ % ssh dam at 213.178.77.185 'echo $PATH‘
  /usr/bin:/opt/csw/bin
  dmichelsen at Andromeda-45 ~ % ssh dam at 213.178.77.186 'echo $PATH‘
  /usr/bin:/opt/csw/bin

> 2.  In a first effort at a workaround, I decided to try pushing to the same repository on gcc211, only to find that sshd on that zone does not accept the same public key that works at gcc210.
> 
> Using ssh -vvv and comparing the output, the relevant parts seem to be:
> 
> (for gcc210)
> debug1: Next authentication method: publickey
> debug1: Offering public key: [...]
> debug3: send_pubkey_test
> debug2: we sent a publickey packet, wait for reply
> debug1: Server accepts key: pkalg ssh-rsa blen 533
> debug2: input_userauth_pk_ok: fp e1:ab:01:77:ea:b9:53:32:e1:b8:c0:16:08:fc:7a:04
> 
> (for gcc211)
> debug1: Next authentication method: publickey
> debug1: Offering public key: [...]
> debug3: send_pubkey_test
> debug2: we sent a publickey packet, wait for reply
> debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
> 
> I have no idea why gcc210 accepts my key while gcc211 does not.

I checked your SSH key configuration against mine and compared key formats.
From what I can say I use the same key format (RSA) and length (4096) and it
works for me:

gcc-solaris11# pwd
/export/home/jcb/.ssh
gcc-solaris11# ssh-keygen -lf authorized_keys               
4096 e1:ab:01:77:ea:b9:53:32:e1:b8:c0:16:08:fc:7a:04 authorized_keys

As /export/home is a loopback-mounted filesystem for both gcc210 and gcc211
the key is indeed absolutely identical on both machines. If the problem persists
we need to make a quick debug session where I run sshd in full debug mode and
probably trusslog the I/O to see whats going wrong.


Best regards

  — Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the buildfarm mailing list