Gentoo Archives: gentoo-user

From: Alexander Puchmayr <alexander.puchmayr@×××××××.at>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Layman adding git over ssh only repository
Date: Mon, 15 Aug 2022 07:18:43
Message-Id: 9529065.VV5PYv0bhD@zeus
1 Hi there,
2
3 I tried to add a repository which is only reachable via git over ssh; no
4 access via git port (9418 according to /etc/services) or http(s). Only ssh
5 connections with public key are accepted.
6
7 I tried
8 Layman -o ssh://git@myserver/path/to/repo.git -f -a myrepo, but failed with
9 "invalid url".
10 Then I tried the same with "git://git@..." , also failed.
11
12 It seems like it does not accept the url scheme and refusing to connect at
13 all. Next thing I tried is to create a repository.xml and put it to the local
14 file system:
15
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
18 <repositories xmlns="" version="1.0">
19 <repo quality="experimental" status="unofficial">
20 <name>my-repo</name>
21 <description lang="en">My overlay</description>
22 <owner type="person">
23 <email>alexander.puchmayr#my-email.com</email>
24 <name>Alexander Puchmayr></name>
25 </owner>
26 </repo>
27 <source type="git">git://myserver/path/to/repo.git</source>
28 </repositories>
29
30 Layman -o repository.xml -f -a myrepo now tries to fetch it via the git port
31 (9418), failing with timeout.
32
33 Replacing source type="git" with "ssh", "ssh+git", "git+ssh" also did not
34 succeed.
35
36 I'm pretty sure not being the first one trying this, but I cannot find any
37 useful information how to do this. So how can I achieve this?
38
39 Thanks
40 Alex

Replies

Subject Author
[gentoo-user] Re: Layman adding git over ssh only repository nunojsilva@×××××××.pt