all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#70034: Hostkey error when pulling or building from private git repository
@ 2024-03-27 16:09 Atte Torri via Bug reports for GNU Guix
  2024-04-10 10:14 ` Tim Johann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Atte Torri via Bug reports for GNU Guix @ 2024-03-27 16:09 UTC (permalink / raw)
  To: 70034

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

Hello, 

I get an error message when trying to `guix pull` a channel from a private git repository or when trying to `guix build` a package from a private git repository 
Previously it worked great up until a few days ago. I have tested it on multiple machines and get the same error, as well as for private repositories hosted on gitlab and github. 

This is the error message I get when I pull (for build it is essentially the same) 

atte@beryllium:~$ guix pull 
Updating channel 'guix-test' from Git repository at 'git@github.com:Blixodus/guix-test.git'... 
guix pull: error: Git error: failed to set hostkey preference: The requested method(s) are not currently supported 


And this is how I define channels in .config/guix/channels.scm, with a url to a private git repository by ssh 

(list (channel 
(name 'guix-test) 
(url "git@github.com:Blixodus/guix-test.git") 
(branch "main"))) 

Atte Torri 

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

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

* bug#70034: Hostkey error when pulling or building from private git repository
  2024-03-27 16:09 bug#70034: Hostkey error when pulling or building from private git repository Atte Torri via Bug reports for GNU Guix
@ 2024-04-10 10:14 ` Tim Johann
  2024-04-11 17:34 ` Frederickson, Jonathan via Bug reports for GNU Guix
  2024-04-12 14:50 ` Frederickson, Jonathan via Bug reports for GNU Guix
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Johann @ 2024-04-10 10:14 UTC (permalink / raw)
  To: 70034


[-- Attachment #1.1: Type: text/plain, Size: 784 bytes --]

Hi there,

I have experienced the same problem, and have a little piece of the puzzle.  As I looked at the server hosting my own private channel I saw the line

Unable to negotiate with XXX.XXX.XXX.XXX port 45072: no matching host key type found. Their offer: ssh-rsa [preauth]

which means that the guix pull command only uses a Hostkey using an algorithm that is not in the default configuration of the sshd HostKeyAlgorithms (as it is considered too weak for keys of a size <2048 bits?).

The workaround I am using is a line

HostKeyAlgorithms +ssh-rsa

in my server's sshd_config (and using a key of a size of 4096 bits).

Nevertheless, I would like to see guix pull using a host key with a different algorithm - or a larger variety of host keys.

Hoping that helps,

Cheers

Tim

[-- Attachment #1.2: Type: text/html, Size: 2722 bytes --]

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

* bug#70034: Hostkey error when pulling or building from private git repository
  2024-03-27 16:09 bug#70034: Hostkey error when pulling or building from private git repository Atte Torri via Bug reports for GNU Guix
  2024-04-10 10:14 ` Tim Johann
@ 2024-04-11 17:34 ` Frederickson, Jonathan via Bug reports for GNU Guix
  2024-04-12 14:50 ` Frederickson, Jonathan via Bug reports for GNU Guix
  2 siblings, 0 replies; 4+ messages in thread
From: Frederickson, Jonathan via Bug reports for GNU Guix @ 2024-04-11 17:34 UTC (permalink / raw)
  To: 70034@debbugs.gnu.org

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

I just ran into this issue as well. I spent some time bisecting last
night and tracked it down to a change in guile-git's dependency on
libgit2:

  9f00975f55e569fc3ba204fc34261a942a19b4e5 is the first bad commit
  commit 9f00975f55e569fc3ba204fc34261a942a19b4e5
  Author: Ludovic Courtès <ludo@gnu.org>
  Date:   Mon Feb 26 22:15:57 2024 +0100
  
      gnu: guile-git: Depend on libgit2 1.7.
      
      * gnu/packages/guile.scm (guile-git)[inputs]: Replace LIBGIT2-1.3 
with
      LIBGIT2-1.7.
      
      Change-Id: Ia386f977b0888b7bd9b26443ac6150428fda2155
  
   gnu/packages/guile.scm | 4 +---
   1 file changed, 1 insertion(+), 3 deletions(-)

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4655 bytes --]

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

* bug#70034: Hostkey error when pulling or building from private git repository
  2024-03-27 16:09 bug#70034: Hostkey error when pulling or building from private git repository Atte Torri via Bug reports for GNU Guix
  2024-04-10 10:14 ` Tim Johann
  2024-04-11 17:34 ` Frederickson, Jonathan via Bug reports for GNU Guix
@ 2024-04-12 14:50 ` Frederickson, Jonathan via Bug reports for GNU Guix
  2 siblings, 0 replies; 4+ messages in thread
From: Frederickson, Jonathan via Bug reports for GNU Guix @ 2024-04-12 14:50 UTC (permalink / raw)
  To: 70034@debbugs.gnu.org

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

It looks like this is https://github.com/libgit2/libgit2/issues/6612

And one of the comments on that issue from the libgit2 maintainer made
me realize there's a workaround. Using github.com as an example since
the initial report was having trouble with a channel on github, if you
run this:

$ ssh-keyscan github.com >> ~/.ssh/known_hosts

...it seems to fix the issue, because ssh-keyscan fetches host keys of
all types from the remote host, rather than just one (as seems to
happen when you connect to a remote host via SSH normally).

Obviously would prefer a proper fix, but this is a relatively low-
impact workaround for now.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4655 bytes --]

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

end of thread, other threads:[~2024-04-15  5:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 16:09 bug#70034: Hostkey error when pulling or building from private git repository Atte Torri via Bug reports for GNU Guix
2024-04-10 10:14 ` Tim Johann
2024-04-11 17:34 ` Frederickson, Jonathan via Bug reports for GNU Guix
2024-04-12 14:50 ` Frederickson, Jonathan via Bug reports for GNU Guix

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.