bugzilla-daemon at bugzilla.mindrot.org
2007-Jul-07 20:36 UTC
[Bug 1336] New: Environment variable changes
http://bugzilla.mindrot.org/show_bug.cgi?id=1336
Summary: Environment variable changes
Product: Portable OpenSSH
Version: 4.3p2
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: ssh
AssignedTo: bitbucket at mindrot.org
ReportedBy: kernel at pkts.ca
I'm using rxvt-unicode as my terminal program. It has a TERM
environment variable of 'rxvt-unicode'. My system has entries for that
in termcap and terminfo. Everything is hunky-dory.
When I ssh to another person's system, they don't have entries for that
in termcap and terminfo. I'd like to add an entry in ~/.ssh/config
that lets me set the TERM environment variable, but that's apparently
not an option yet. My hackish solution is 'env TERM=xterm ssh
somehost'.
I can't see where TERM is defined as an environment variable that
should be sent; it's not in ~/.ssh/config nor /etc/ssh/ssh_config. The
man pages don't mention TERM; they explicitly say that no environment
variables are sent (man ssh_config, look for SendEnv). 'Man slogin'
says that some environment variables are set on the server side; but
TERM isn't one of them.
Thanks!
--
Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2008-Jun-12 07:48 UTC
[Bug 1336] Environment variable changes
https://bugzilla.mindrot.org/show_bug.cgi?id=1336
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
CC| |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> 2008-06-12
17:47:56 ---
Yes, the $TERM supplied by the client takes precedence over any one set
in ~/.ssh/config.
On the other hand, you can set it in your shell's initialisation
(.profile, .bash_profile) and also in ~/.ssh/environment (which does
take precedence over the client-specified $TERM).
.ssh/environment is documented in the sshd(8) manpage.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2008-Jul-22 02:19 UTC
[Bug 1336] Environment variable changes
https://bugzilla.mindrot.org/show_bug.cgi?id=1336
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> 2008-07-22
12:19:09 ---
Mass update RESOLVED->CLOSED after release of openssh-5.1
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.