Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
net:git [2020/05/24 15:09] – [Mise en place] david | net:git [2023/05/22 10:25] (Version actuelle) – [Utilisateur à distance] david | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | <note important> | ||
- | en cours d' | ||
- | </ | ||
- | |||
- | |||
< | < | ||
====== Donner accès à vos dépôt git ====== | ====== Donner accès à vos dépôt git ====== | ||
Ligne 58: | Ligne 53: | ||
====== Serveur web ====== | ====== Serveur web ====== | ||
- | '' | + | '' |
Il peut être utilisé directement sous Apache, mais nécessite le port [[https:// | Il peut être utilisé directement sous Apache, mais nécessite le port [[https:// | ||
Ligne 174: | Ligne 169: | ||
Attribuez les [[: | Attribuez les [[: | ||
+ | N' | ||
+ | <file sshconfig / | ||
+ | AllowUsers david | ||
+ | </ | ||
Ligne 184: | Ligne 183: | ||
root@popeye:/ | root@popeye:/ | ||
sshd_enable: | sshd_enable: | ||
+ | root@popeye:/ | ||
+ | sshd_flags: | ||
root@popeye:/ | root@popeye:/ | ||
</ | </ | ||
+ | |||
+ | <callout type=" | ||
Maintenant, il faut connecter l' | Maintenant, il faut connecter l' | ||
Ligne 191: | Ligne 194: | ||
Ici, le port 9022 est attribué par pf(4) pour cela: | Ici, le port 9022 est attribué par pf(4) pour cela: | ||
- | <file / | + | < |
# allow jail_git to connect to internet | # allow jail_git to connect to internet | ||
- | nat on $ext_if inet6 from $jail_git to any -> ($ext_if) | + | nat on $ext_if inet6 from $jail_git to any -> ($ext_if):0 |
# | # | ||
rdr pass on $ext_if proto tcp from any to ($ext_if) port 9022 -> jail_git port 22 | rdr pass on $ext_if proto tcp from any to ($ext_if) port 9022 -> jail_git port 22 | ||
Ligne 203: | Ligne 206: | ||
Du coté du client, adaptez votre configuration ssh à la connexion git: | Du coté du client, adaptez votre configuration ssh à la connexion git: | ||
- | <file .ssh/ | + | < |
Host git.popeye.lapinbilly.eu | Host git.popeye.lapinbilly.eu | ||
HostName popeye.lapinbilly.eu | HostName popeye.lapinbilly.eu | ||
Ligne 214: | Ligne 217: | ||
<code bash> | <code bash> | ||
- | david]loin: | + | david@loin: |
Clonage dans ' | Clonage dans ' | ||
Enter passphrase for key '/ | Enter passphrase for key '/ |