unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied
@ 2020-10-03 21:51 Nathan Dehnel
  2020-10-21  4:03 ` Maxim Cournoyer
  2020-12-08 23:31 ` Marius Bakke
  0 siblings, 2 replies; 4+ messages in thread
From: Nathan Dehnel @ 2020-10-03 21:51 UTC (permalink / raw)
  To: 43783

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1114 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied
  2020-10-03 21:51 bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied Nathan Dehnel
@ 2020-10-21  4:03 ` Maxim Cournoyer
  2020-10-22  6:32   ` Nathan Dehnel
  2020-12-08 23:31 ` Marius Bakke
  1 sibling, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2020-10-21  4:03 UTC (permalink / raw)
  To: Nathan Dehnel; +Cc: 43783

Hello,

Nathan Dehnel <ncdehnel@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 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 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@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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied
  2020-10-21  4:03 ` Maxim Cournoyer
@ 2020-10-22  6:32   ` Nathan Dehnel
  0 siblings, 0 replies; 4+ messages in thread
From: Nathan Dehnel @ 2020-10-22  6:32 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 43783

[-- Attachment #1: Type: text/plain, Size: 2778 bytes --]

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@gmail.com>
wrote:

> Hello,
>
> Nathan Dehnel <ncdehnel@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 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 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@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
>

[-- Attachment #2: Type: text/html, Size: 3394 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied
  2020-10-03 21:51 bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied Nathan Dehnel
  2020-10-21  4:03 ` Maxim Cournoyer
@ 2020-12-08 23:31 ` Marius Bakke
  1 sibling, 0 replies; 4+ messages in thread
From: Marius Bakke @ 2020-12-08 23:31 UTC (permalink / raw)
  To: Nathan Dehnel, 43783-done

[-- Attachment #1: Type: text/plain, Size: 956 bytes --]

Nathan Dehnel <ncdehnel@gmail.com> skriver:

> 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

This was fixed by Jesse in 81fbe03b509414aa1ede960141a7ffd241d5f9ee.

Thanks for the report!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 507 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-08 23:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 21:51 bug#43783: ssh-copy-id: line 254: /dev/null`: Permission denied Nathan Dehnel
2020-10-21  4:03 ` Maxim Cournoyer
2020-10-22  6:32   ` Nathan Dehnel
2020-12-08 23:31 ` Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).