-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
94 lines (81 loc) · 3.59 KB
/
Copy path.env.example
File metadata and controls
94 lines (81 loc) · 3.59 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
# ============================================
# claude-code-ssh - Server Configuration
# ============================================
# Copy this file to .env and fill with your actual server details
# NEVER commit the .env file to version control!
# --------------------------------------------
# Example Server 1: Production (Password Auth)
# --------------------------------------------
SSH_SERVER_PRODUCTION_HOST=prod.example.com
SSH_SERVER_PRODUCTION_USER=admin
SSH_SERVER_PRODUCTION_PASSWORD=your_secure_password_here
SSH_SERVER_PRODUCTION_PORT=22
SSH_SERVER_PRODUCTION_DEFAULT_DIR=/var/www/html
SSH_SERVER_PRODUCTION_DESCRIPTION=Main production server
# --------------------------------------------
# Example Server 2: Staging (SSH Key Auth)
# --------------------------------------------
SSH_SERVER_STAGING_HOST=staging.example.com
SSH_SERVER_STAGING_USER=deploy
SSH_SERVER_STAGING_KEYPATH=~/.ssh/staging_key
SSH_SERVER_STAGING_PORT=22
SSH_SERVER_STAGING_DEFAULT_DIR=/home/deploy/app
SSH_SERVER_STAGING_DESCRIPTION=Staging environment
# --------------------------------------------
# Example Server 3: Development (Custom Port)
# --------------------------------------------
SSH_SERVER_DEVELOPMENT_HOST=192.168.1.100
SSH_SERVER_DEVELOPMENT_USER=developer
SSH_SERVER_DEVELOPMENT_PASSWORD=dev_password_here
SSH_SERVER_DEVELOPMENT_PORT=2222
SSH_SERVER_DEVELOPMENT_DEFAULT_DIR=/home/developer/projects
SSH_SERVER_DEVELOPMENT_DESCRIPTION=Local development server
# --------------------------------------------
# Server Naming Convention:
# SSH_SERVER_[NAME]_[PROPERTY]
#
# Where NAME is your server identifier (UPPERCASE)
# And PROPERTY can be:
# - HOST: Server hostname or IP
# - USER: SSH username
# - PASSWORD: SSH password (for password auth)
# - KEYPATH: Path to SSH private key (for key auth)
# - PORT: SSH port (default: 22)
# - DEFAULT_DIR: Default working directory (optional)
# - DESCRIPTION: Optional description
# - SUDO_PASSWORD: Password for sudo operations (optional)
# - PLATFORM: Remote OS type: "linux" (default) or "windows"
# --------------------------------------------
# --------------------------------------------
# Example Server 4: Windows (OpenSSH for Windows)
# --------------------------------------------
SSH_SERVER_WINHOST_HOST=192.168.1.90
SSH_SERVER_WINHOST_USER=svc-ssh
SSH_SERVER_WINHOST_KEYPATH=~/.ssh/winhost_key
SSH_SERVER_WINHOST_PORT=2222
SSH_SERVER_WINHOST_PLATFORM=windows
SSH_SERVER_WINHOST_DESCRIPTION=Windows host via OpenSSH
# ============================================
# Performance & Stability Configuration
# ============================================
# These settings help prevent Claude Code crashes and optimize performance
# Maximum output length before truncation (default: 10000 characters)
# Prevents Claude Code from crashing on large command outputs
MCP_SSH_MAX_OUTPUT_LENGTH=10000
# Default command timeout in milliseconds (default: 120000 = 2 minutes)
# Increase for long-running operations
MCP_SSH_DEFAULT_TIMEOUT=120000
# Maximum command timeout in milliseconds (default: 300000 = 5 minutes)
# Commands cannot exceed this timeout
MCP_SSH_MAX_TIMEOUT=300000
# Use compact JSON responses (true/false, default: false)
# Saves tokens by removing JSON formatting
# MCP_SSH_COMPACT_JSON=false
# Enable debug information in responses (true/false, default: false)
# MCP_SSH_DEBUG=false
# Connection timeout in milliseconds (default: 1800000 = 30 minutes)
# Idle connections are closed after this period
# MCP_SSH_CONNECTION_TIMEOUT=1800000
# Keepalive interval in milliseconds (default: 60000 = 1 minute)
# How often to send keepalive packets to prevent connection drops
# MCP_SSH_KEEPALIVE_INTERVAL=60000