Bug 3341 - Allow for TERM overriding with SetEnv directive
Summary: Allow for TERM overriding with SetEnv directive
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 7.9p1
Hardware: amd64 Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-20 20:30 AEST by Gabriel Homa
Modified: 2022-02-25 13:57 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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