[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh tput error 'tput: No value for $TERM and no -T specified'



Thomas Dickey wrote:
Matt Price <matt.price@utoronto.ca> wrote:

Thomas Dickey wrote:

Matt Price <matt.price@utoronto.ca> wrote:



I've checked and $TERM is in fact set to 'xterm' on the client
temrinal before I execute the ocmmand, and in remote sessions started


perhaps.  I just ran
	ssh server env
and saw no sign of $TERM, other than the message
	TERM: Undefined variable.


hmm.  same here.  But when I try:
TERM=xterm ssh server env
there's s till no sign.  So what would the next step be?


I'm not sure (that is I don't know which part of the ssh connection is doing
this).

ssh's either filtering out some/all environment variables, or because the
connection is coming in on a pty which doesn't actually have a terminal
associated with it, the target is stripping it out since it doesn't know.  In
some contexts, that sort of thing would set $TERM to "network".


hmmm., But why am I getting this message when not everyone seems to get it? I've tried, for instance, setting LogLevel = QUIET in /etc/ssh/sshd_config, but no luck.

the problem isn't catastrophic, but it IS very distracting and annoying.

ah well.
matt



Reply to: