Skip to content

v0.2.1

Choose a tag to compare

@pozgo pozgo released this 23 Dec 22:37
· 7 commits to main since this release
92163ff

Fixed

  • PTY read error in Docker container - Fixed "read /dev/ptmx: input/output error" when using the interactive terminal in Docker deployments

    • Added webcli user to tty group for proper PTY device access
    • Created dedicated /home/webcli/tmp directory for session temp files
    • Set TMPDIR environment variable to ensure reliable temp file creation in non-root context
  • 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 -F config option when servers are actually configured

Changed

  • Dockerfile:

    • User creation now includes -G tty for PTY access
    • Added tmp directory setup for session files
    • Added TMPDIR=/home/webcli/tmp environment variable
  • internal/terminal/terminal.go:

    • Updated generateSSHWrapper() function signature to accept hasServers parameter
    • SSH config file is only referenced when servers are configured

Technical Details

Root Causes:

  1. Non-root user lacked TTY group membership needed for /dev/ptmx access
  2. SSH wrapper always referenced config file even when no servers existed

Files Modified:

  • Dockerfile
  • internal/terminal/terminal.go