From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uGthAvst6WDdjgAAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 07:19:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eLCnOfot6WCxVAAAB5/wlQ (envelope-from ) for ; Sat, 10 Jul 2021 05:19:54 +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 75A28132A9 for ; Sat, 10 Jul 2021 07:19:54 +0200 (CEST) Received: from localhost ([::1]:57578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m25P6-0003qf-B4 for larch@yhetil.org; Sat, 10 Jul 2021 01:19:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m25Ox-0003mw-1x for help-guix@gnu.org; Sat, 10 Jul 2021 01:19:43 -0400 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:43651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m25Ov-0001uX-5z for help-guix@gnu.org; Sat, 10 Jul 2021 01:19:42 -0400 Received: by mail-oi1-x230.google.com with SMTP id m3so15106862oig.10 for ; Fri, 09 Jul 2021 22:19:40 -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=3F6ck2ljYe1OI1ONkeZL05pTR0YGcO0M5dJYffm5Ves=; b=eOFU6QgoEHmjotvFphSX2Tka+3i9s4W5ms4Vx0cj9AMJ8cty8a7FqoLkbG38nlJ5jQ BQMO/1WW5oMjgY9M0pWp8kjWM6Eoic1O2iWQ2C5R+dttFivhiVaDu6FtcmH2DPWToNM6 rpA1ERA+0YJfbNlAHeWDHjD7V56DrYm6sG9Z5Hg+N57htxQ83Sk9r/Ij5dKeMWYfSDoX KHX3NhIoGmXkl2ABGk9zUNrhjn6XFN4nnIO13B3X+1v4YCXtLWnaU8r2azb9G87YqmNG wSsd9jlUrsomuV2JM7C5nJfVgyJyowuZxuC3HW7JSQ0v+LOCn5LUzFj0HDoSWhMgct2d ug1A== 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=3F6ck2ljYe1OI1ONkeZL05pTR0YGcO0M5dJYffm5Ves=; b=IRLczOb1utkEYh/ZPoCKBNuVfwqvc/GQrgvyBuJ3qNZAHv5We2uyefIbrPjzIPWZow ifugom3XY+SUZNkU/ZCdVNESl6kPubTyTE2ZR7UKyJrlX8WQaR+t1p7/eqc2AXTeiNr5 R2KpIFq7LFIdjLdvuX08aSIo5mWdkjx+nrQNlMK8MJXAhwKvjbo2JW3PkjxepURnXSvQ P/OTHjuxoVkoWVdOICfTtR2Zc+JTXwJgGR4QhYDskLywsbHADzVky2fxTtH2Gkpfoho1 +tejuI8VknFvC8uCxsQF+bPXITEmNvLMG/pZsddYEWsVHXJdFXhzxxcpgpbT1ljaV+VF gcew== X-Gm-Message-State: AOAM530YWtIXy8A0bfc4jVpmOQRsjuF7wgUqMX3A1ECSvbwOT2Nhn/fi rPvyyVuWb67hsznSR0vzIeivPzIMp1TwjSGWKdg= X-Google-Smtp-Source: ABdhPJzCIysYBDdQNGvKoRZcZuIj/BHz0Y5rdZOJUqksu6wu85nY/21+Q73uO9lLYLD2Hyi/Cf1bSkXlp+dpo/zXUBQ= X-Received: by 2002:aca:3e09:: with SMTP id l9mr1942832oia.169.1625894379338; Fri, 09 Jul 2021 22:19:39 -0700 (PDT) MIME-Version: 1.0 References: <87a6mv6j1w.fsf@gmail.com> In-Reply-To: <87a6mv6j1w.fsf@gmail.com> From: Lo Peter Date: Sat, 10 Jul 2021 05:19:28 +0000 Message-ID: Subject: Re: How to access private channel To: Chris Marusich Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=peterloleungyau@gmail.com; helo=mail-oi1-x230.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625894394; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3F6ck2ljYe1OI1ONkeZL05pTR0YGcO0M5dJYffm5Ves=; b=XpyKgACDlQtGUv+qDmH8j9OxHWQ+oNR8cUFPSNgxrFFh0gWeNtYRi34HpJPgFCxP14tZlZ 2KY9BpBraJNPvpFeGsGZ9BRdFqAIdvAMHabRr0ojYB9KLS3kw2ftHXUzo2Hx8z+8iR5NfB zgCoJboD4OgwawaQfvkDgYoGFGiNVLvkePus7588vClRpZGUe0tbrS8gE91j4P1wjslWL5 iDMXF23cX+ueke93vAGmR4VwlrZXT0vvq1r8+DL6rjWzdgjBZPYW5SVN9WfK1C8ERG5YZ+ 1Zqjw8OVi0fq8Lrc5fhZoNNDGOHx1dPo6nCSdjKWMc8P/uW1xx96qFEWIl6Cpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625894394; a=rsa-sha256; cv=none; b=Tcpghb8jumKMa3y8Jk13Mz0vEznzMx5GdCsR8K+/m8x6HdtBFGQxFmA4z8TQgYyfav6RR7 yoUa/2pOobw8zIL8MZwUaOp1GzTLuK3VU1PvZCNoB2CgacE4O/7Ahc+YgWO6stSDiSZjLZ aksPt6am4sQzwwJGLmZSqPrdmDEpkl6XMa4Db82MzQpBHeakmN6gO1sH8+ux+QlDsqwOMa B3FUesD02vpLum758p7xFGvJXJxTQoBs3kBeZPMRp1SpnE1JxW0QwuT9GMFzYj4RuOlkpB 1NvIqywgCSI9mM4gRROcu8kn7hNeseWE5LhdVRyP5zz9aLodbf4FMMYcMDcB3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=eOFU6Qgo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=eOFU6Qgo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 75A28132A9 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: CyqSeLxdUL6c 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 wrote: > > Lo Peter 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