unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to access private channel
@ 2021-07-07  5:40 Lo Peter
  2021-07-10  1:42 ` Chris Marusich
  0 siblings, 1 reply; 3+ messages in thread
From: Lo Peter @ 2021-07-07  5:40 UTC (permalink / raw)
  To: help-guix

Dear all,

I am experimenting with setting up a private channel as a private
github repository, then I prepared a channels file for testing:

(list (channel
       (name 'guix)
       (url "https://git.savannah.gnu.org/git/guix.git")
       (commit "9904a15a4c838362673c1affdbaf1e83d92fe8ff"))
      (channel
       (name 'my-guix-pkgs)
       (url "git@github.com:peterloleungyau/my-guix-pkgs.git")
       (commit "b51d236ebbbdd134bafb64e5092342a2d058ec2a")))

Then I try it with:
$ guix time-machine -C channels.scm --disable-authentication --
environment --ad-hoc python-radian
Updating channel 'guix' from Git repository at
'https://git.savannah.gnu.org/git/guix.git'...
guix time-machine: warning: channel authentication disabled
Updating channel 'my-guix-pkgs' from Git repository at
'git@github.com:peterloleungyau/my-guix-pkgs.git'...
guix time-machine: error: Git error: Failed to retrieve list of SSH
authentication methods: Failed getting response


So it seems the guix daemon cannot use the SSH of my user to access
the private git repository? How to get around this? Thanks in advance.

Regards,
Peter Lo


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

* Re: How to access private channel
  2021-07-07  5:40 How to access private channel Lo Peter
@ 2021-07-10  1:42 ` Chris Marusich
  2021-07-10  5:19   ` Lo Peter
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Marusich @ 2021-07-10  1:42 UTC (permalink / raw)
  To: Lo Peter; +Cc: help-guix

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

Lo Peter <peterloleungyau@gmail.com> writes:

> Dear all,
>
> I am experimenting with setting up a private channel as a private
> github repository, then I prepared a channels file for testing:
>
> (list (channel
>        (name 'guix)
>        (url "https://git.savannah.gnu.org/git/guix.git")
>        (commit "9904a15a4c838362673c1affdbaf1e83d92fe8ff"))
>       (channel
>        (name 'my-guix-pkgs)
>        (url "git@github.com:peterloleungyau/my-guix-pkgs.git")
>        (commit "b51d236ebbbdd134bafb64e5092342a2d058ec2a")))
>
> Then I try it with:
> $ guix time-machine -C channels.scm --disable-authentication --
> environment --ad-hoc python-radian
> Updating channel 'guix' from Git repository at
> 'https://git.savannah.gnu.org/git/guix.git'...
> guix time-machine: warning: channel authentication disabled
> Updating channel 'my-guix-pkgs' from Git repository at
> 'git@github.com:peterloleungyau/my-guix-pkgs.git'...
> guix time-machine: error: Git error: Failed to retrieve list of SSH
> authentication methods: Failed getting response
>
>
> So it seems the guix daemon cannot use the SSH of my user to access
> the private git repository? How to get around this? Thanks in advance.

Does it work if you don't try using "time-machine"?  For example:

  guix pull -C channels.scm --disable-authentication

Followed by:

  guix environment --ad-hoc python-radian

Does that work?  I wonder if the "time-machine" part doesn't properly
handle channels fetched over SSH.

-- 
Chris

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

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

* Re: How to access private channel
  2021-07-10  1:42 ` Chris Marusich
@ 2021-07-10  5:19   ` Lo Peter
  0 siblings, 0 replies; 3+ messages in thread
From: Lo Peter @ 2021-07-10  5:19 UTC (permalink / raw)
  To: Chris Marusich; +Cc: help-guix

After some googling, I found two related bug reports of libssh2:
https://github.com/libgit2/pygit2/issues/1013
https://github.com/saltstack/salt/issues/57121

I guess Guix uses libssh2 to process private channels over SSH, if so,
I think doing guix pull first would encounter the same problem.

The suggested workaround is to generate a SSH key in the older PEM
format using the "-m PEM" option of ssh-keygen.
I have tried the workaround and it works for me.

Regards,
Peter Lo

On Sat, Jul 10, 2021 at 1:42 AM Chris Marusich <cmmarusich@gmail.com> wrote:
>
> Lo Peter <peterloleungyau@gmail.com> writes:
>
> > Dear all,
> >
> > I am experimenting with setting up a private channel as a private
> > github repository, then I prepared a channels file for testing:
> >
> > (list (channel
> >        (name 'guix)
> >        (url "https://git.savannah.gnu.org/git/guix.git")
> >        (commit "9904a15a4c838362673c1affdbaf1e83d92fe8ff"))
> >       (channel
> >        (name 'my-guix-pkgs)
> >        (url "git@github.com:peterloleungyau/my-guix-pkgs.git")
> >        (commit "b51d236ebbbdd134bafb64e5092342a2d058ec2a")))
> >
> > Then I try it with:
> > $ guix time-machine -C channels.scm --disable-authentication --
> > environment --ad-hoc python-radian
> > Updating channel 'guix' from Git repository at
> > 'https://git.savannah.gnu.org/git/guix.git'...
> > guix time-machine: warning: channel authentication disabled
> > Updating channel 'my-guix-pkgs' from Git repository at
> > 'git@github.com:peterloleungyau/my-guix-pkgs.git'...
> > guix time-machine: error: Git error: Failed to retrieve list of SSH
> > authentication methods: Failed getting response
> >
> >
> > So it seems the guix daemon cannot use the SSH of my user to access
> > the private git repository? How to get around this? Thanks in advance.
>
> Does it work if you don't try using "time-machine"?  For example:
>
>   guix pull -C channels.scm --disable-authentication
>
> Followed by:
>
>   guix environment --ad-hoc python-radian
>
> Does that work?  I wonder if the "time-machine" part doesn't properly
> handle channels fetched over SSH.
>
> --
> Chris


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

end of thread, other threads:[~2021-07-10  5:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-07  5:40 How to access private channel Lo Peter
2021-07-10  1:42 ` Chris Marusich
2021-07-10  5:19   ` Lo Peter

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).