-
Notifications
You must be signed in to change notification settings - Fork 0
/
sam.el
82 lines (75 loc) · 2.57 KB
/
sam.el
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
;; Internal boxes only reachable via two hops.
;;
;; internet --> kearny (office) --> util1 (dc bastion host) --> box
;;
(require 'tramp)
(setq internal-hosts '("rebound01"
"duckweed01"
"sandbox01"
"tsaa01"
"tsaa10"
"tsaa12"
"tsaa16"
"caumng01"
"caumng02"
"caumng03"
"caumng04"
"caumng05"
"caumng06"
"caumng01"
"cauapp21"
"cauapp22"
"cauapp23"
"cauapp24"
"cauapp25"
"cauapp26"
"cauapp27"
"cauapp28"
"cauapp29"
"cauapp30"
"cauapp31"
"cauapp32"
"cauapp33"
"cauapp34"
"cauapp35"
"cauapp36"
"cauapp37"
"cauapp38"
"cauapp39"
"cauapp40"
"worker01"
"worker02"
"worker03"
"caujob01"
"tsaa69"
"partner01"
"partner02"
"wshapp01"
"wshapp02"
"wshapp03"
"wshapp04"
"wshapp05"
"wshapp06"
"wishes07"
"wishes08"
"wishes09"
"wishes10"
"blog01"
"staging-cauapp01"
"staging-cauutl01"
"staging-ansapp01"
"staging-ansutl01"
"pmta01"
"pmta03"))
(mapcar (lambda (host)
(add-to-list 'tramp-default-proxies-alist
(list host nil "/ssh:root@util1:")))
internal-hosts)
;; can't ssh to root@devbox directly; have to sudo
(add-to-list 'tramp-default-proxies-alist
'("devbox" "root" "/ssh:%h:"))
(add-to-list 'tramp-default-proxies-alist
'("meat" "root" "/ssh:%h:"))
(add-to-list 'tramp-default-proxies-alist
'("meat" "root" "/ssh:%h:"))
(color-theme-twilight)