-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassh.yml
More file actions
96 lines (74 loc) · 2.02 KB
/
assh.yml
File metadata and controls
96 lines (74 loc) · 2.02 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
hosts:
netserver:
User: smartin
Hostname: 192.168.1.24
HostKeyAlgorithms: ssh-dss
KexAlgorithms: diffie-hellman-group1-sha1
tiggeroo:
User: Kelly
Hostname: tiggeroo
poof:
User: smartin
HostName: 192.168.1.41
poodle:
User: smartin
HostName: 192.168.1.40
puddle:
User: smartin
HostName: 192.168.1.40
Gateways: [rasp]
rasp:
User: smartin
Port: 22000
HostName: kdyfish.asuscomm.com
oc:
Hostname: oc.kdyfish.net
Port: 22
dns:
User: smartin
Hostname: dns
ubu1:
User: smartin
Hostname: ubu1.kdyfish.org
ubu2:
User: smartin
Hostname: ubu2.kdyfish.org
ubu3:
User: smartin
Hostname: ubu3.kdyfish.org
century:
User: smartin
Hostname: century
dnstwo:
User: smartin
Hostname: dns2.kdyfish.org
socrates:
User: smartin
Hostname: 192.168.1.125
rasp4:
User: smartin
Hostname: 192.168.1.36
rasp3:
User: smartin
Hostname: 192.168.1.34
defaults:
ConnectionTimeout: 15
Port: 22
User: smartin
StrictHostKeyChecking: no
Hooks:
BeforeConfigWrite:
# - 'exec set -x ; cp {{.SSHConfigPath}} {{.SSHConfigPath}}.bak'
AfterConfigWrite:
- write "{{.SSHConfigPath}} has been rewritten!"
# - notify "{{.SSHConfigPath}} has been rewritten!"
OnConnect:
# Log internal information to a file
# - exec printf '{{.}}' | jq . >> ~/.ssh/last_connected_host.txt
# Write the host prototype to the terminal stderr
- write New SSH connection to {{.Host.Prototype}}
ONDisconnect:
# write on terminal and in desktop notification some statistics about the finished connection
- "write SSH connection to {{.Host.HostName}} closed, {{.Stats.WrittenBytes}} bytes written in {{.Stats.ConnectionDuration}} ({{.Stats.AverageSpeed}}bps)"
# - "notify SSH connection to {{.Host.HostName}} closed, {{.Stats.WrittenBytes}} bytes written in {{.Stats.ConnectionDuration}} ({{.Stats.AverageSpeed}}bps)"
ASSHBinaryPath: /usr/local/bin/assh