1 |
On 2022-08-15, Alexander Puchmayr wrote: |
2 |
|
3 |
> Hi there, |
4 |
> |
5 |
> I tried to add a repository which is only reachable via git over ssh; no |
6 |
> access via git port (9418 according to /etc/services) or http(s). Only ssh |
7 |
> connections with public key are accepted. |
8 |
> |
9 |
> I tried |
10 |
> Layman -o ssh://git@myserver/path/to/repo.git -f -a myrepo, but failed with |
11 |
> "invalid url". |
12 |
> Then I tried the same with "git://git@..." , also failed. |
13 |
> |
14 |
> It seems like it does not accept the url scheme and refusing to connect at |
15 |
> all. Next thing I tried is to create a repository.xml and put it to the local |
16 |
> file system: |
17 |
> |
18 |
> <?xml version="1.0" encoding="UTF-8"?> |
19 |
> <!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd"> |
20 |
> <repositories xmlns="" version="1.0"> |
21 |
> <repo quality="experimental" status="unofficial"> |
22 |
> <name>my-repo</name> |
23 |
> <description lang="en">My overlay</description> |
24 |
> <owner type="person"> |
25 |
> <email>alexander.puchmayr#my-email.com</email> |
26 |
> <name>Alexander Puchmayr></name> |
27 |
> </owner> |
28 |
> </repo> |
29 |
> <source type="git">git://myserver/path/to/repo.git</source> |
30 |
> </repositories> |
31 |
> |
32 |
> Layman -o repository.xml -f -a myrepo now tries to fetch it via the git port |
33 |
> (9418), failing with timeout. |
34 |
> |
35 |
> Replacing source type="git" with "ssh", "ssh+git", "git+ssh" also did not |
36 |
> succeed. |
37 |
> |
38 |
> I'm pretty sure not being the first one trying this, but I cannot find any |
39 |
> useful information how to do this. So how can I achieve this? |
40 |
|
41 |
This is not something I have tried myself, but a quick glance at the |
42 |
online manual page for layman shows a git+ssh example (under "Overlay |
43 |
lists format") - the source type is still "git", "git+ssh" is only in |
44 |
the protocol/scheme part of the URL, so perhaps it needs to be something |
45 |
like: |
46 |
|
47 |
<source type="git">git+ssh://myserver/path/to/repo.git</source> |
48 |
|
49 |
-- |
50 |
(Apologies if this is not helpful,) |
51 |
Nuno Silva |