Skip to content

Instantly share code, notes, and snippets.

@DilwoarH
Created September 23, 2019 13:27
Show Gist options
  • Save DilwoarH/af2824d011985dc2f60bb71fcf31903e to your computer and use it in GitHub Desktop.
Save DilwoarH/af2824d011985dc2f60bb71fcf31903e to your computer and use it in GitHub Desktop.
ssh_config - for fish terminals
## CI
## --
Host ci-jumpbox
Hostname ci-jumpbox.integration.publishing.service.gov.uk
Host *.ci
ProxyCommand ssh -e none %r@ci-jumpbox -W (echo %h | sed 's/\.ci$//'):%p
## Integration
## -----------
Host integration
Hostname jumpbox.integration.publishing.service.gov.uk
Host *.integration
ProxyCommand ssh -e none %r@integration -W (echo %h | sed 's/\.integration$//'):%p
## Staging
## -------
Host jumpbox.staging.publishing.service.gov.uk
ProxyCommand none
Host *.staging.publishing.service.gov.uk
ProxyCommand ssh -e none %r@jumpbox.staging.publishing.service.gov.uk -W %h:%p
Host jumpbox-1.management.staging
Hostname jumpbox.staging.publishing.service.gov.uk
ProxyCommand none
Host jumpbox-2.management.staging
Hostname jumpbox.staging.publishing.service.gov.uk
Port 1022
ProxyCommand none
Host *.staging
ProxyCommand ssh -e none %r@jumpbox-1.management.staging -W (echo %h | sed 's/\.staging$//'):%p
## Staging AWS
## -------
Host staging-aws
Hostname jumpbox.blue.staging.govuk.digital
Host *.staging-aws
ProxyCommand ssh -e none %r@staging-aws -W (echo %h | sed 's/\.staging-aws$//'):%p
## Production
## ----------
Host jumpbox.publishing.service.gov.uk
ProxyCommand none
Host *.publishing.service.gov.uk
ProxyCommand ssh -e none %r@jumpbox.publishing.service.gov.uk -W %h:%p
Host jumpbox-1.management.production
Hostname jumpbox.publishing.service.gov.uk
ProxyCommand none
Host jumpbox-2.management.production
Hostname jumpbox.publishing.service.gov.uk
Port 1022
ProxyCommand none
Host *.production
ProxyCommand ssh -e none %r@jumpbox-1.management.production -W (echo %h | sed 's/\.production$//'):%p
## Production AWS
## -------
Host production-aws
Hostname jumpbox.blue.production.govuk.digital
Host *.production-aws
ProxyCommand ssh -e none %r@production-aws -W (echo %h | sed 's/\.production-aws$//'):%p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment