From jcb62281 at gmail.com Wed May 19 05:33:37 2021 From: jcb62281 at gmail.com (Jacob Bachmeyer) Date: Tue, 18 May 2021 22:33:37 -0500 Subject: Strange problems with GCC compile farm nodes gcc210 and gcc211 Message-ID: <60A48711.10406@gmail.com> I have two problems to report: 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. 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. For now, I have been able to move testing commits for DejaGnu to gcc210 using Git bundles and scp, but I would like to be able to run more extensive tests on Solaris 11. -- Jacob From dam at opencsw.org Fri May 21 12:43:36 2021 From: dam at opencsw.org (Dagobert Michelsen) Date: Fri, 21 May 2021 12:43:36 +0200 Subject: Strange problems with GCC compile farm nodes gcc210 and gcc211 In-Reply-To: <60A48711.10406@gmail.com> References: <60A48711.10406@gmail.com> Message-ID: <9CA699A9-EDEF-4FBF-A8EC-59E25A7FA803@opencsw.org> Hi Jacob, Am 19.05.2021 um 05:33 schrieb Jacob Bachmeyer via buildfarm : > 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 From jcb62281 at gmail.com Sat May 22 03:38:39 2021 From: jcb62281 at gmail.com (Jacob Bachmeyer) Date: Fri, 21 May 2021 20:38:39 -0500 Subject: Strange problems with GCC compile farm nodes gcc210 and gcc211 In-Reply-To: <9CA699A9-EDEF-4FBF-A8EC-59E25A7FA803@opencsw.org> References: <60A48711.10406@gmail.com> <9CA699A9-EDEF-4FBF-A8EC-59E25A7FA803@opencsw.org> Message-ID: <60A8609F.70802@gmail.com> Dagobert Michelsen wrote: > Hi Jacob, > > Am 19.05.2021 um 05:33 schrieb Jacob Bachmeyer via buildfarm : > >> 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 > Thank you; git push to gcc210 works now. >> 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. >> >> [...] >> >> 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. > I have no idea what changed, but it works now. It was consistently broken before -- those failures were repeatable but now I get a successful login. Whatever you did to fix it, thanks. -- Jacob