Bug 3341

Summary: Allow for TERM overriding with SetEnv directive
Product: Portable OpenSSH Reporter: Gabriel Homa <gabriel.homa>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WORKSFORME    
Severity: enhancement CC: djm
Priority: P5    
Version: 7.9p1   
Hardware: amd64   
OS: Linux   

Description Gabriel Homa 2021-08-20 20:30:16 AEST
Hello,
With the ever increasing amount of available terminal emulators I'd like to request an enhancement to SSH that would allow for $TERM to be overwritten by the SetEnv directive. 

This would allow for configurations such as:

```
Host *.debian10.org
        SetEnv TERM=xterm-256color

Host *.fedora34.org
        SetEnv TERM=alacritty
```

Making the lives of users managing older systems happier :)

Thank you for your time.

Kind regards,
Gabriel.
Comment 1 Damien Miller 2021-08-20 22:54:03 AEST
This is already a feature in OpenSSH 8.7 that was released today: https://www.openssh.com/releasenotes.html#8.7
Comment 2 Damien Miller 2022-02-25 13:57:16 AEDT
closing bugs resolved before openssh-8.9