Files
openssh/openssh-send-extra-term-env.patch
Antonio Larrosa 7808b8b65c Accepting request 1271991 from home:hpjansson:branches:network
- Add openssh-send-extra-term-env.patch, which appends a few
  environment variables useful for terminal identification to the
  default send and accept lists.

OBS-URL: https://build.opensuse.org/request/show/1271991
OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=291
2025-04-23 13:19:09 +00:00

31 lines
1.1 KiB
Diff

Index: openssh-10.0p1/ssh_config
===================================================================
--- openssh-10.0p1.orig/ssh_config
+++ openssh-10.0p1/ssh_config
@@ -49,6 +49,10 @@ Host *
SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
SendEnv LC_IDENTIFICATION LC_ALL
+# Send environment variables useful for terminal identification.
+ SendEnv LC_TERMINAL LC_TERMINAL_VERSION
+ SendEnv COLORTERM TERM_PROGRAM TERM_PROGRAM_VERSION
+
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
Index: openssh-10.0p1/sshd_config
===================================================================
--- openssh-10.0p1.orig/sshd_config
+++ openssh-10.0p1/sshd_config
@@ -123,6 +123,10 @@ AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TI
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
+# Accept environment variables useful for terminal identification.
+AcceptEnv LC_TERMINAL LC_TERMINAL_VERSION
+AcceptEnv COLORTERM TERM_PROGRAM TERM_PROGRAM_VERSION
+
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no