Repository navigation
Expand file tree
/
Copy pathmachines.yaml
More file actions
50 lines (46 loc) · 1.97 KB
/
Copy pathmachines.yaml
File metadata and controls
50 lines (46 loc) · 1.97 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
# linuxmcp machine registry. Install to ~/.config/linuxmcp/machines.yaml
#
# This file is the trust boundary. exec_command can only target an `id` that
# appears here; there is no way to pass a host inline. Note that add_machine,
# remove_machine and update_machine rewrite this file in normalised form, so
# these comments do not survive a registry mutation.
machines:
- id: web01
host: 192.168.1.10
port: 22
user: admin
auth: key # key | agent
key_path: ~/.ssh/id_ed25519 # path only, never key material
tags: [prod, web]
description: "Primary nginx frontend"
deny_patterns: # refused before the SSH call is made
- 'rm\s+-rf\s+/(\s|$)'
- '\bmkfs\b'
- 'dd\s+if=.*of=/dev/'
- id: db01
host: 10.0.0.5
port: 22
user: postgres
auth: agent # use the running ssh-agent, no key_path needed
tags: [prod, db]
description: "Postgres primary"
- id: switch01
host: 10.0.0.2
user: admin
auth: password # last resort; prefer key or agent
password_env: LINUXMCP_SWITCH01_PASSWORD # variable NAME, never the password
tags: [net]
description: "Appliance that cannot do key auth"
defaults:
connect_timeout_sec: 10
command_timeout_sec: 60
max_output_bytes: 200000 # truncate stdout/stderr beyond this, flagged in the response
idle_timeout_sec: 300 # close pooled SSH sessions idle longer than this
max_pool_size: 16
kill_grace_sec: 5 # SIGTERM at the deadline, SIGKILL this many seconds later
max_transfer_bytes: 20000000 # upload_file / download_file size ceiling
strict_host_keys: true # false disables host key verification everywhere
# env_file: ~/.config/linuxmcp/secrets.env # NAME=value passwords, must be 0600
# known_hosts: ~/.ssh/known_hosts
deny_patterns: # applied to every machine, in addition to per-machine ones
- ':\(\)\s*\{\s*:\|:&\s*\}\s*;'