GNU bug report logs - #43783
ssh-copy-id: line 254: /dev/null`: Permission denied

Previous Next

Package: guix;

Reported by: Nathan Dehnel <ncdehnel <at> gmail.com>

Date: Sat, 3 Oct 2020 21:53:01 UTC

Severity: normal

Done: Marius Bakke <marius <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43783 in the body.
You can then email your comments to 43783 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#43783; Package guix. (Sat, 03 Oct 2020 21:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nathan Dehnel <ncdehnel <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 03 Oct 2020 21:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nathan Dehnel <ncdehnel <at> gmail.com>
To: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Subject: ssh-copy-id: line 254: /dev/null`: Permission denied
Date: Sat, 3 Oct 2020 16:51:55 -0500
[Message part 1 (text/plain, inline)]
ssh-copy-id errors out and then does not install the key

bash-5.0$ ssh-copy-id pi <at> 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 <at> raspberrypi's password:

Number of key(s) added: 2

Now try logging into the machine, with:   "ssh 'pi <at> raspberrypi'"
and check to make sure that only the key(s) you wanted were added.
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#43783; Package guix. (Wed, 21 Oct 2020 04:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 43783 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Nathan Dehnel <ncdehnel <at> gmail.com>
Cc: 43783 <at> debbugs.gnu.org
Subject: Re: bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied
Date: Wed, 21 Oct 2020 00:03:11 -0400
Hello,

Nathan Dehnel <ncdehnel <at> gmail.com> writes:

> ssh-copy-id errors out and then does not install the key
>
> bash-5.0$ ssh-copy-id pi <at> 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 <at> raspberrypi's password:
>
> Number of key(s) added: 2
>
> Now try logging into the machine, with:   "ssh 'pi <at> 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 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 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 ‘/etc/dropbear’: 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 known hosts.
root <at> 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




Information forwarded to bug-guix <at> gnu.org:
bug#43783; Package guix. (Thu, 22 Oct 2020 06:33:01 GMT) Full text and rfc822 format available.

Message #11 received at 43783 <at> debbugs.gnu.org (full text, mbox):

From: Nathan Dehnel <ncdehnel <at> gmail.com>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 43783 <at> debbugs.gnu.org
Subject: Re: bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied
Date: Thu, 22 Oct 2020 01:32:12 -0500
[Message part 1 (text/plain, inline)]
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 <maxim.cournoyer <at> gmail.com>
wrote:

> Hello,
>
> Nathan Dehnel <ncdehnel <at> gmail.com> writes:
>
> > ssh-copy-id errors out and then does not install the key
> >
> > bash-5.0$ ssh-copy-id pi <at> 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 <at> raspberrypi's password:
> >
> > Number of key(s) added: 2
> >
> > Now try logging into the machine, with:   "ssh 'pi <at> 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 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
> 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 ‘/etc/dropbear’: 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 known
> hosts.
> root <at> 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
>
[Message part 2 (text/html, inline)]

Reply sent to Marius Bakke <marius <at> gnu.org>:
You have taken responsibility. (Tue, 08 Dec 2020 23:32:02 GMT) Full text and rfc822 format available.

Notification sent to Nathan Dehnel <ncdehnel <at> gmail.com>:
bug acknowledged by developer. (Tue, 08 Dec 2020 23:32:02 GMT) Full text and rfc822 format available.

Message #16 received at 43783-done <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <marius <at> gnu.org>
To: Nathan Dehnel <ncdehnel <at> gmail.com>, 43783-done <at> debbugs.gnu.org
Subject: Re: bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied
Date: Wed, 09 Dec 2020 00:31:10 +0100
[Message part 1 (text/plain, inline)]
Nathan Dehnel <ncdehnel <at> gmail.com> skriver:

> ssh-copy-id errors out and then does not install the key
>
> bash-5.0$ ssh-copy-id pi <at> 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

This was fixed by Jesse in 81fbe03b509414aa1ede960141a7ffd241d5f9ee.

Thanks for the report!
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Jan 2021 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.