Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


$ ansible-playbook -i inventory/build tasks/ssh.yml

3. It may be useful to add the following to your ~/.ssh/config file (you can create a new text file in that location if you don't already have one). 

Host hee-build-azureaws
    Hostname aws.jump.tis.nhs.uk
    port 926422
    User bastion
#RabbitMQ STAGE
LocalForward 143325672 10.3160.20.14:1433147:15672
#Neo4J HTTP, then BOLT
LocalForward 143427687 10.3160.20.15150:14337687
LocalForward 143527474 10.3160.20.10150:7474
    ForwardAgent yes
    PubKeyAuthentication yes
    IdentityFile ~/.ssh/id_rsa

#Build Env

Host 10.140.0.*
    User heetis
    ProxyCommand ssh hee-build-azure aws nc %h %p
    ForwardAgent yes
    StrictHostKeyChecking no

#Stage Env
Host 10.150160.0.*
    User heetis
    ProxyCommand ssh hee-build-azure aws nc %h %p
    ForwardAgent yes
    StrictHostKeyChecking no

#Prod Env
Host 10.160170.0.*
    User heetis
    ProxyCommand ssh hee-build-azure aws nc %h %p
    ForwardAgent yes
    StrictHostKeyChecking no

#NIMDTA Env

Host 10.170254.0*.*
    User heetis
    ProxyCommand ssh hee-build-azure aws nc %h %p
    ForwardAgent yes
    StrictHostKeyChecking no

#Bastion Env

Host 10.99.0.*
    User bastion
    ProxyCommand ssh hee-build-azure nc %h %p
    ForwardAgent yes
    StrictHostKeyChecking no

# UI Dev server

Host 10.150.0.136
    User heetis
    ProxyCommand ssh hee-build-azure nc %h %p
    ForwardAgent yes
    StrictHostKeyChecking no
    #revalidation
    LocalForward 28080 localhost:8080
    #concerns
    LocalForward 28084 localhost:8084
    #reference
    LocalForward 28088 localhost:8088
    #profile
    LocalForward 28082 localhost:8082
    #notifications
    LocalForward 28092 localhost:8092
    #tcs
    LocalForward 28093 localhost:8093
    #connection-discrepancies
    LocalForward 28095 localhost:8095
    #db
    LocalForward 3306 localhost:3306
    #generic-upload
    LocalForward 8099 localhost:8099

# N3 Bridge
Host 10.1.3.*
    User heetis
    ProxyCommand ssh -W %h:%p hee-build-azureaws nc %h %p
    ForwardAgent yes
    StrictHostKeyChecking no

Host github.com
    Hostname ssh.github.com
    Port 443

...