76 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Exemple de configuration client OpenSSH (~/.ssh/config).
# Copier vers ~/.ssh/config ou inclure avec : Include /chemin/vers/smart_ide/projects/example/ssh-config.local
# (ne pas versionner de fichier contenant des données personnelles non nécessaires).
#
# Alignement avec le dépôt :
# - projects/<id>/conf.json → smart_ide.remote_data_access.environments.*.ssh_host_alias
# - projects/active-project.json (gabarit : active-project.json.example) → id projet actif pour lIDE uniquement
#
# Remplacer <SSH_USER>, <LAN_IP_*>, <forge_host>, <key_file> selon le poste.
# Bastion optionnel par Host : ProxyJump <SSH_USER>@<bastion_host>
Host git.<forge_host>
HostName git.<forge_host>
User git
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
# smart_ide — projects/*/conf.json → ssh_host_alias
# HostName : mapping LAN type ia_dev/deploy/_lib/env-map.sh (test/pprod/prod → .101/.102/.103) si applicable.
Host test
HostName <LAN_IP_TEST>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host pprod
HostName <LAN_IP_PPROD>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host prod
HostName <LAN_IP_PROD>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host smart-ide-test
HostName <LAN_IP_TEST>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host smart-ide-pprod
HostName <LAN_IP_PPROD>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host smart-ide-prod
HostName <LAN_IP_PROD>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host builazoo-test
HostName <LAN_IP_TEST>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host builazoo-pprod
HostName <LAN_IP_PPROD>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
Host builazoo-prod
HostName <LAN_IP_PROD>
User <SSH_USER>
IdentityFile ~/.ssh/<key_file>
IdentitiesOnly yes
# Autres ids : dupliquer le trio <id>-test / <id>-pprod / <id>-prod comme dans projects/<id>/conf.json.