Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-24-2005, 01:50 AM   #1
LQ Newbie
Registered: Feb 2004
Distribution: RH9
Posts: 10

Rep: Reputation: 0
scp error, TERM env. variable not set?

I get a error when using scp. After I enter the password for the remote system, it returns the message:

TERM environment variable not set.

I am not sure what to do.

I get the same message from three different local machines running different distributions. I do ssh no problem.
Old 11-25-2005, 12:57 AM   #2
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
type env & check if
your terminal type variable is set.

should be something like

or vt100 or depending on what you are using.

most linux consoles use the one above.

if env doesnt show it then you can set it by adding the above line to
.bash_profile if you use the bash shell
or similar for other shells that you use!
Old 11-26-2005, 02:31 AM   #3
LQ Newbie
Registered: Feb 2004
Distribution: RH9
Posts: 10

Original Poster
Rep: Reputation: 0
Yeah, I did that and I echo'ed $TERM. I was a little surprised to see that this shows the TERM value for the local machine, even though I am logged on to a remote system using ssh. For example my Ubuntu and Red Hat systems both show $TERM = xterm. This is the same whether I am logged on locally or remotely. My iBook shows xterm-color. Again, this value is the same whether logged on locally or to the remote through ssh. I will be at the remote system on Monday, I'll try reading the value for TERM then.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test if an env variable is set King of Men Linux - Newbie 5 11-03-2005 05:39 AM
DISPLAY variable error...cannot set it rameshchandra Linux - General 2 10-09-2005 05:59 AM
how do you set an env variable from within a csh script? BrianK Linux - General 3 05-26-2004 03:16 PM
Cron: TERM environment variable not set. hydro Linux - General 4 04-15-2004 11:59 PM
$TERM Variable Problems LinuxTechie Red Hat 2 11-02-2003 11:29 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration