Blame view

config/sample/ssh_config 1.33 KB
d4e966c1   Paulo Tada   Adding a sample o...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This file contains the ssh configurations for access the SPB machines
Host *
  ForwardAgent yes

# The reverseproxy unconfigured is the reverseproxy machine
#   before "rake preconfig" command
Host reverseproxy.unconfigured
  User spb
  Hostname <REVERSEPROXY UNCONFIGURED EXTERNAL IP>

Host reverseproxy
  User spb
  Hostname <REVERSEPROXY INTERNAL IP>
  # The port must be equals to the one defined on config.yaml file "alt_ssh_port"
  Port <PORT>
  ProxyCommand ssh spb@<REVERSEPROXY EXTERNAL IP> -p 22 nc %h %p

Host integration
  User spb
  Hostname <REVERSEPROXY EXTERNAL IP>

Host database
  User spb
  Hostname <DATABASE INTERNAL IP>
  # connect via reverseproxy host
  ProxyCommand ssh spb@<REVERSEPROXY EXTERNAL IP> -p %p nc %h 22

Host social
  User spb
  Hostname <SOCIAL INTERNAL IP>
  # connect via reverseproxy host
  ProxyCommand ssh spb@<REVERSEPROXY EXTERNAL IP> -p %p nc %h 22

Host email
  User spb
  Hostname <EMAIL INTERNAL IP>
  # connect via reverseproxy host
  ProxyCommand ssh spb@<REVERSEPROXY EXTERNAL IP> -p %p nc %h 22

Host mezuro
  User spb
  Hostname <MAZURO INTERNAL IP>
  # connect via reverseproxy host
  ProxyCommand ssh spb@<REVERSEPROXY EXTERNAL IP> -p %p nc %h 22

Host monitor
  User spb
  Hostname <MONITOR INTERNAL IP>
  # connect via reverseproxy host
  ProxyCommand ssh spb@<REVERSEPROXY EXTERNAL IP> -p %p nc %h 22