tech:notes_ssh_proxy_jump_proxycommand
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_ssh_proxy_jump_proxycommand [2025/07/23 14:43] – créée Jean-Baptiste | tech:notes_ssh_proxy_jump_proxycommand [2025/07/23 14:45] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 22: | Ligne 22: | ||
| Host bastion | Host bastion | ||
| Hostname 192.168.2.34 | Hostname 192.168.2.34 | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Avec sshpass | ||
| + | |||
| + | '' | ||
| + | |||
| + | ~~~ | ||
| + | Host l12* 192.168.* !pom01 !l12srvpom01 !192.168.50.160 | ||
| + | User admin | ||
| + | ProxyCommand sshpass -e ssh -W %h:%p pom01 | ||
| + | |||
| + | Host l12srvpom01 pom01 | ||
| + | Hostname 192.168.50.160 | ||
| + | User admin | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | read -s SSHPASS | ||
| + | export SSHPASS | ||
| ~~~ | ~~~ | ||
| Ligne 44: | Ligne 64: | ||
| - | ### Exemple | + | ## Exemple |
| '' | '' | ||
tech/notes_ssh_proxy_jump_proxycommand.1753274624.txt.gz · Dernière modification : de Jean-Baptiste
