Skip to content

fix: remove SetEnv TERM=xterm-256color from ssh/config Host *#55

Closed
stanfish06 wants to merge 1 commit into
masterfrom
claude/nice-cori-rsLdO
Closed

fix: remove SetEnv TERM=xterm-256color from ssh/config Host *#55
stanfish06 wants to merge 1 commit into
masterfrom
claude/nice-cori-rsLdO

Conversation

@stanfish06

Copy link
Copy Markdown
Owner

Closes #54\n\n## Problem\n\nCommit af605023 ("fix ssh term") re-added SetEnv TERM=xterm-256color to Host * on the same branch as PR #50, undoing the intentional removal in 57482bc. PR #53 (Copilot draft) attempted to remove it again but was closed without merging.\n\n## Why it must go\n\n- Conflicts with tmux-256color — inside tmux TERM is tmux-256color (PRs #16 #22 #34 #48). Forcing xterm-256color over SSH overwrites this on the remote side, breaking true-color in neovim.\n- Silently no-ops on HPC — greatlakes/bridges2 do not set AcceptEnv TERM in sshd_config, so the directive is already ignored there.\n- Was intentionally deleted57482bc in PR #50 removed this exact line.\n\n## Change\n\nOne-line deletion from Host * in ssh/config:\n\ndiff\n Host *\n ControlMaster auto\n- SetEnv TERM=xterm-256color\n ControlPath ~/.ssh/controlmasters/%r@%h:%p\n ControlPersist 1800\n Compression yes\n TCPKeepAlive yes\n ServerAliveInterval 20\n ServerAliveCountMax 10\n\n\n## Test plan\n- [ ] grep SetEnv ssh/config — no matches\n- [ ] SSH to any host — TERM inherits from the local terminal as expected


Generated by Claude Code

…54)

Commit af60502 re-added this line on the same branch as PR #50, undoing
the intentional removal in 57482bc. SetEnv TERM overrides the tmux-256color
terminal on remote sessions and is silently ignored by most HPC clusters
that do not set AcceptEnv TERM in sshd_config.
@stanfish06 stanfish06 closed this May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regression: SetEnv TERM=xterm-256color back in ssh/config Host * after PR #50

1 participant