From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id jvQwLAgokV8FbAAA0tVLHw (envelope-from ) for ; Thu, 22 Oct 2020 06:34:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0EkLJggokV+yFwAAB5/wlQ (envelope-from ) for ; Thu, 22 Oct 2020 06:34:48 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D2DF99402A2 for ; Thu, 22 Oct 2020 06:34:47 +0000 (UTC) Received: from localhost ([::1]:41878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVUBS-000576-KF for larch@yhetil.org; Thu, 22 Oct 2020 02:34:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVU9m-0004Zm-VU for bug-guix@gnu.org; Thu, 22 Oct 2020 02:33:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVU9l-00074o-VZ for bug-guix@gnu.org; Thu, 22 Oct 2020 02:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVU9l-0003B7-T1 for bug-guix@gnu.org; Thu, 22 Oct 2020 02:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied Resent-From: Nathan Dehnel Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 22 Oct 2020 06:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43783 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 43783-submit@debbugs.gnu.org id=B43783.160334835112171 (code B ref 43783); Thu, 22 Oct 2020 06:33:01 +0000 Received: (at 43783) by debbugs.gnu.org; 22 Oct 2020 06:32:31 +0000 Received: from localhost ([127.0.0.1]:51239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVU9H-0003AF-A8 for submit@debbugs.gnu.org; Thu, 22 Oct 2020 02:32:31 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:39763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVU9F-00039y-3f for 43783@debbugs.gnu.org; Thu, 22 Oct 2020 02:32:29 -0400 Received: by mail-wm1-f49.google.com with SMTP id d3so641767wma.4 for <43783@debbugs.gnu.org>; Wed, 21 Oct 2020 23:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tgHd8qEDNWUKgAs1LoI7DKVVal65+jmexuDrHVxj7zo=; b=J+0FyFUCvPnWtH6zXN00KgJAOF0hgkwTXCSSOKTO1p2HQGUp22dD+lBT80PDWAPd7E ZkkzJzXp+SD2xruFi3K4dlfsz8lGze7J1Ov7JoK2l/XD0CWojSAJwEfJ5d7Eyuoe+Sri rj3PHvVBtn+YJX3dq66AFTcCtQ6hcjaYzTxkvDRRyjOuQuxQ+DZ/SMzY5R52knNdLyqv eElyPZia0o1f531AZcKiIxzzKsbM0I953RvYCTexbAZs+1VaDfKkUitqxN2EPX/FHbv1 jKaxwWv0276VuyuW5utsO0jxco+Q4uKnvr1dVrBJig/cPq0EL+cJuJVKQj3BKueZkM83 LMAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tgHd8qEDNWUKgAs1LoI7DKVVal65+jmexuDrHVxj7zo=; b=lHswCwIPL3iOc1fkwdMirpmFFpu3vtb/mAY9kf3LjLXhzBqF6TjQztuZjUl/nfe7Ty FM580fVXBahHkZ07rsdvMCb6rZTFytsaqCkEYD823lezTkLm4NhPtjG1KqbjSZUUsPxc CREyKv6pS3GsalfpBXXRDfMY94BsvYhrNG/Rh96ElLUjuTnHf5ggom6HCoOTnib2jFf3 Z5gqKIHImwcb1iSApamzaQIUITv/AGp6jrUGkIu4RxC2bYU12Ihe/1HDovCgsqi59Iyg 7yugA04QvYO3APq/dXBFB6+Y9ZE3/2+dfbmDu/KAQiTENQKXJNTs7NaCw9O8EiHcgYrF BC4w== X-Gm-Message-State: AOAM531BH8Y5a0f1+Z6dkpdpZjEjvKm8JbRAnx5ncKpSYYoQtNSOBwzz LUhNcOMgkDlDSlK7uSh80ePCZVK+Sz7JW60tGds= X-Google-Smtp-Source: ABdhPJztTYnkGbBIgK7qHgDecqfhlwo8ZkKcRYnAgfzCJCh2B6A55+TQxE806S2Pr+/txPUwAFPAs5AebLnfeNW8hAA= X-Received: by 2002:a05:600c:216:: with SMTP id 22mr908211wmi.149.1603348343183; Wed, 21 Oct 2020 23:32:23 -0700 (PDT) MIME-Version: 1.0 References: <87imb4445c.fsf@gmail.com> In-Reply-To: <87imb4445c.fsf@gmail.com> From: Nathan Dehnel Date: Thu, 22 Oct 2020 01:32:12 -0500 Message-ID: Content-Type: multipart/alternative; boundary="000000000000725e4105b23ca0c6" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43783@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=J+0FyFUC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: AwvI0MFyrvhz --000000000000725e4105b23ca0c6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It happens with both my gentoo machines as well. But they can copy id's among each other fine. On Tue, Oct 20, 2020 at 11:03 PM Maxim Cournoyer wrote: > Hello, > > Nathan Dehnel writes: > > > ssh-copy-id errors out and then does not install the key > > > > bash-5.0$ ssh-copy-id pi@raspberrypi > > /home/nathan/.guix-profile/bin/ssh-copy-id: INFO: attempting to log in > with > > the new key(s), to filter out any that are already installed > > /home/nathan/.guix-profile/bin/ssh-copy-id: INFO: 2 key(s) remain to be > > installed -- if you are prompted now it is to install the new keys > > /home/nathan/.guix-profile/bin/ssh-copy-id: line 251: warning: > > here-document at line 251 delimited by end-of-file (wanted `EOF') > > /home/nathan/.guix-profile/bin/ssh-copy-id: line 250: warning: > > here-document at line 250 delimited by end-of-file (wanted `EOF') > > /home/nathan/.guix-profile/bin/ssh-copy-id: line 254: /dev/null`: > > Permission denied > > /home/nathan/.guix-profile/bin/ssh-copy-id: line 260: EOF: command not > found > > pi@raspberrypi's password: > > > > Number of key(s) added: 2 > > > > Now try logging into the machine, with: "ssh 'pi@raspberrypi'" > > and check to make sure that only the key(s) you wanted were added. > > Could this be specific to the raspberrypi? I cannot reproduce such > problem using a remote Guix System. But I just tried using a Buildroot > target I had on hand, and I could reproduce something similar: > > --8<---------------cut here---------------start------------->8--- > $ ssh-copy-id target > /home/maxim/.guix-profile/bin/ssh-copy-id: INFO: attempting to log in wit= h > the new key(s), to filter out any that are already installed > /home/maxim/.guix-profile/bin/ssh-copy-id: INFO: 1 key(s) remain to be > installed -- if you are prompted now it is to install the new keys > /home/maxim/.guix-profile/bin/ssh-copy-id: line 251: warning: > here-document at line 251 delimited by end-of-file (wanted `EOF') > /home/maxim/.guix-profile/bin/ssh-copy-id: line 250: warning: > here-document at line 250 delimited by end-of-file (wanted `EOF') > mkdir: cannot create directory =E2=80=98/etc/dropbear=E2=80=99: Permissio= n denied > Pseudo-terminal will not be allocated because stdin is not a terminal. > Warning: Permanently added '10.42.0.243' (ECDSA) to the list of known > hosts. > root@10.42.0.243's password: > -sh: ssh-rsa: not found > --8<---------------cut here---------------end--------------->8--- > > I think it probably has to do with the script not finding the tools it > expects on the minimal (embedded) environments of the > Rasperrypi/Buildroot. I'll try to have a closer look soon. > > Thanks, > > Maxim > --000000000000725e4105b23ca0c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It happens with both my gentoo machines as well. But they = can copy id's among each other fine.

On Tue, Oct 20, 2020 at 11:03 P= M Maxim Cournoyer <maxim.co= urnoyer@gmail.com> wrote:
Hello,

Nathan Dehnel <n= cdehnel@gmail.com> writes:

> ssh-copy-id errors out and then does not install the key
>
> bash-5.0$ ssh-copy-id pi@raspberrypi
> /home/nathan/.guix-profile/bin/ssh-copy-id: INFO: attempting to log in= with
> the new key(s), to filter out any that are already installed
> /home/nathan/.guix-profile/bin/ssh-copy-id: INFO: 2 key(s) remain to b= e
> installed -- if you are prompted now it is to install the new keys
> /home/nathan/.guix-profile/bin/ssh-copy-id: line 251: warning:
> here-document at line 251 delimited by end-of-file (wanted `EOF')<= br> > /home/nathan/.guix-profile/bin/ssh-copy-id: line 250: warning:
> here-document at line 250 delimited by end-of-file (wanted `EOF')<= br> > /home/nathan/.guix-profile/bin/ssh-copy-id: line 254: /dev/null`:
> Permission denied
> /home/nathan/.guix-profile/bin/ssh-copy-id: line 260: EOF: command not= found
> pi@raspberrypi's password:
>
> Number of key(s) added: 2
>
> Now try logging into the machine, with:=C2=A0 =C2=A0"ssh 'pi@= raspberrypi'"
> and check to make sure that only the key(s) you wanted were added.

Could this be specific to the raspberrypi?=C2=A0 I cannot reproduce such problem using a remote Guix System.=C2=A0 But I just tried using a Buildroo= t
target I had on hand, and I could reproduce something similar:

--8<---------------cut here---------------start------------->8---
$ ssh-copy-id target
/home/maxim/.guix-profile/bin/ssh-copy-id: INFO: attempting to log in with = the new key(s), to filter out any that are already installed
/home/maxim/.guix-profile/bin/ssh-copy-id: INFO: 1 key(s) remain to be inst= alled -- if you are prompted now it is to install the new keys
/home/maxim/.guix-profile/bin/ssh-copy-id: line 251: warning: here-document= at line 251 delimited by end-of-file (wanted `EOF')
/home/maxim/.guix-profile/bin/ssh-copy-id: line 250: warning: here-document= at line 250 delimited by end-of-file (wanted `EOF')
mkdir: cannot create directory =E2=80=98/etc/dropbear=E2=80=99: Permission = denied
Pseudo-terminal will not be allocated because stdin is not a terminal.
Warning: Permanently added '10.42.0.243' (ECDSA) to the list of kno= wn hosts.
root@10.42.0.243&= #39;s password:
-sh: ssh-rsa: not found
--8<---------------cut here---------------end--------------->8---

I think it probably has to do with the script not finding the tools it
expects on the minimal (embedded) environments of the
Rasperrypi/Buildroot.=C2=A0 I'll try to have a closer look soon.

Thanks,

Maxim
--000000000000725e4105b23ca0c6--