You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having multiple projects with multiple sets of ssh-keys and ssh_config files (one for each project) it is very important to be able to define a ssh_config file by parameter.
The (outstanding) example here being ansible: I can define a ssh_config file in my ansible.cfg and now the key, the known_hosts etc. is all defined.
Why this is important: I'm accessing many servers/containers through a vpn or bastion hosts. So for my local machine I need to separate ssh-contexts by project otherwise ip-ranges (10.11.0.x) would overlap.
When having multiple projects with multiple sets of ssh-keys and ssh_config files (one for each project) it is very important to be able to define a ssh_config file by parameter.
The (outstanding) example here being ansible: I can define a ssh_config file in my ansible.cfg and now the key, the known_hosts etc. is all defined.
Why this is important: I'm accessing many servers/containers through a vpn or bastion hosts. So for my local machine I need to separate ssh-contexts by project otherwise ip-ranges (10.11.0.x) would overlap.
Example of ssh_config:
a command is then run locally as such:
ssh -F ssh.cfg someuser@container-a
orssh -F ss.cfg [email protected]
The text was updated successfully, but these errors were encountered: