From owner-freebsd-questions Sun Sep 2 8:17: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60]) by hub.freebsd.org (Postfix) with ESMTP id ECB2B37B403 for ; Sun, 2 Sep 2001 08:16:58 -0700 (PDT) Received: from 66-44-65-29.s283.tnt6.lnhva.md.dialup.rcn.com ([66.44.65.29] helo=sten.alder.net) by smtp01.mrf.mail.rcn.net with smtp (Exim 3.33 #10) id 15dYzZ-0007fN-00 for questions@freebsd.org; Sun, 02 Sep 2001 11:16:57 -0400 Received: by sten.alder.net (sSMTP sendmail emulation); Sun, 2 Sep 2001 11:16:46 -0400 Date: Sun, 2 Sep 2001 11:16:46 -0400 From: "Bob Hall" To: questions@freebsd.org Subject: Re: Setting TERM for ssh Message-ID: <20010902111552.B214@starpower.net> Mail-Followup-To: Bob Hall , questions@freebsd.org References: <130131880@toto.iv> <15250.2301.813597.849594@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15250.2301.813597.849594@guru.mired.org>; from mwm@mired.org on Sun, Sep 02, 2001 at 05:25:01AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Sep 02, 2001 at 05:25:01AM -0500, Mike Meyer wrote: > Bob Hall types: > > Does anyone know how to set TERM for ssh? The ssh man pages say that you > > can do this, but they don't say how. I've been researching and > > experimenting for several days now, but haven't found the answer. > > The man pages on 4.4-RC don't say you can set the terminal > environment. However, it does say that sshd reads > $HOME/.ssh/environment for lines of the form "name=value" to add to > the environment. Would that do what you're looking for? My man pages say the same, which I took to mean that I could set the TERM variable for the ssh session in the environment file. But it has no effect. My conception of what happens at the start of an ssh session is that my ssh software reads the TERM setting in $HOME/.ssh/environment and passes that to my remote account. Obviously, that isn't happening. The remote account receives the TERM value for the current shell, regardless of the setting in the environment file. If I set the bash TERM to vt220, I can use the remote account without problem, but applications that use color are monochrome. If I set TERM in the environment file, the remote account complains about the 'cons25' setting. I'm trying to find a way to set TERM for the ssh session, and only for the ssh session. Is this possible, or does the ssh session have to have it's own terminal with it's own shell in order to have it's own TERM value? And if so, what is the point of the environment file? I'm sure it does something, but what? Bob Hall -- Know thyself? Absurd direction! Bubbles bear no introspection. -Khushhal Khan Khatak To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message