Received: from wolfsden.cz (wolfsden.cz [37.205.8.62]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 58521782C9B for <~alpine/users@lists.alpinelinux.org>; Fri, 30 Apr 2021 22:51:30 +0000 (UTC) Received: by wolfsden.cz (Postfix, from userid 110) id EC3064ED1B8; Fri, 30 Apr 2021 22:51:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_ALL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 7D0294ECD40; Fri, 30 Apr 2021 22:51:28 +0000 (UTC) Date: Sat, 1 May 2021 00:51:26 +0200 From: Wolf To: Andrew Cc: "~alpine/users@lists.alpinelinux.org" <~alpine/users@lists.alpinelinux.org> Subject: Re: SSH not working in container Message-ID: <20210430225126.kqvxgm2bdj5sa3ap@wolfsden.cz> References: <80EDAA82-E049-4646-820E-F27BD8DE7BDC@getmailspring.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kzh7ik7a4mqboyye" Content-Disposition: inline In-Reply-To: <80EDAA82-E049-4646-820E-F27BD8DE7BDC@getmailspring.com> --kzh7ik7a4mqboyye Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2021-04-30 15:46:33 -0400, Andrew wrote: >=20 > I have been setting up a container and installed openssh-client , and > went to use ssh git@gitlab.com , but got the following error in > response: > /app # which ssh > /usr/bin/ssh > /app # ssh git@gitlab.com > Error relocating /usr/bin/ssh: reallocarray: symbol not found Seems to work for me: +:( $ podman run -it --rm docker.io/library/alpine:3.11 Trying to pull docker.io/library/alpine:3.11... Getting image source signatures Copying blob ddad3d7c1e96 done Copying config e389ae5892 done Writing manifest to image destination Storing signatures / # apk add openssh-client fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.= tar.gz (1/5) Installing openssh-keygen (8.1_p1-r0) (2/5) Installing ncurses-terminfo-base (6.1_p20200118-r4) (3/5) Installing ncurses-libs (6.1_p20200118-r4) (4/5) Installing libedit (20191211.3.1-r0) (5/5) Installing openssh-client (8.1_p1-r0) Executing busybox-1.31.1-r10.trigger OK: 10 MiB in 19 packages / # ssh git@gitlab.com The authenticity of host 'gitlab.com (172.65.251.78)' can't be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'gitlab.com,172.65.251.78' (ECDSA) to the list o= f known hosts. git@gitlab.com: Permission denied (publickey,keyboard-interactive). / # > /app # alpine > sh: alpine: not found What was this supposed to do? > Is there something that I'm missing here? I have to say, this kind of > blindsided me, so I don't know what other info would be helpful. I think steps to reproduce this would help with giving more useful advice then "works for me".=20 W. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --kzh7ik7a4mqboyye Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmCMie4ACgkQL7/ufbZ/ wak2uBAAr/oNn6udVD0fFoVbLC2yoex3QyxAW0gtjV1KMi/we+OgigzFqbZt92vc ng1ZcKvsaUHM9Qu6BZw9fbRKNTzd8d+N2//yCWho7w5P+I8n9k7cBQ421yRpPO4X ARIw2/d39kf/altlbzHlIOSy6OEuCmS+prTsfMY/aFNmW83O1Uv8KUfR55IdvHpr 3LA1O1FyoVFlfYToGMBteovhI74zVodnq6KH0E/CX3X9mYBrVtsAJgd4kvz83wGK +qWTTQK+ce9HZWNjc1AOat8l0moSnD7ZEjlWvEc3JiMTTHLBK8sngDh/97mrVLa+ UnQPqwDKYpGYP9DShh28LL9CseP6LI5aeSTN7ElPJS1pwbFT/sL6kJfVrjYuC/SW piLpjQzTYC0e/80gz13zhA6kCF7VrtdXAE9zyD88WabJr1vYlJVhe7l3oqWgrHnE MDMUXx8IIyh5ltyAWjKiVtYftvLrJMqCIjuVO8aYXDPaJ5VbSAWWBzXBVLyBmOE4 2JzVeA516uY0pBe3iNR+rH7PHDUHBabvGDPO4OoL+RGtkpOQby2+ni66wDWkTdoz or3//WgY0qluIloeXFkeHoYW8TWUmH2CK59kKKE6fz0ao4QwycGXQ5r1UcHhq+ej pQ1ZwA+2igKGewcWbkruIqtHIH5cdl4ZR0DvfTtda2LBWqLpALk= =xiKA -----END PGP SIGNATURE----- --kzh7ik7a4mqboyye--