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:10] – [Redirection ssh] 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 193: | Ligne 196: | ||
<file bash / | <file bash / | ||
# 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 |