Repository navigation
v0.2.1
Fixed
-
PTY read error in Docker container - Fixed "read /dev/ptmx: input/output error" when using the interactive terminal in Docker deployments
- Added
webcliuser tottygroup for proper PTY device access - Created dedicated
/home/webcli/tmpdirectory for session temp files - Set
TMPDIRenvironment variable to ensure reliable temp file creation in non-root context
- Added
-
SSH wrapper script bug - Fixed issue where SSH connections would fail when only an SSH key was selected (without any servers configured)
- The wrapper script was referencing a non-existent config file
- Now only includes
-Fconfig option when servers are actually configured
Changed
-
Dockerfile:- User creation now includes
-G ttyfor PTY access - Added tmp directory setup for session files
- Added
TMPDIR=/home/webcli/tmpenvironment variable
- User creation now includes
-
internal/terminal/terminal.go:- Updated
generateSSHWrapper()function signature to accepthasServersparameter - SSH config file is only referenced when servers are configured
- Updated
Technical Details
Root Causes:
- Non-root user lacked TTY group membership needed for
/dev/ptmxaccess - SSH wrapper always referenced config file even when no servers existed
Files Modified:
Dockerfileinternal/terminal/terminal.go