Project

General

Profile

Actions

Feature #14630

open

Apply rules defines in ssh config

Added by Enrico Bartz almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Smart Proxy - SSH
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have a huge amount of hosts that i want to have enabled for remote execution but my foreman server does not have access to all of them directly. I have like different customer networks which are split and i have jump hosts to them.

So I'm using different kind of ssh keys for different servers and have some rules for proxy commands.

An example of my config could be like:

Host cus* wan*
ProxyCommand ssh -A -t -W %h:%p
User root
IdentityFile ~/.ssh/id_cus

Host wao* mol*
ProxyCommand ssh -A -t -W %h:%p
User root
IdentityFile ~/.ssh/id_wao

Would it be possible to have that rules applied for the ssh connection? And if not, what can i do besides bringing smart proxy's to every jumpserver that i have? (Which is also not possible for me because I'm not able to get a fresh ruby on all that machines and reinstalling is also not a solution for me. )

Actions

Also available in: Atom PDF