LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   scp error, TERM env. variable not set? (http://www.linuxquestions.org/questions/linux-networking-3/scp-error-term-env-variable-not-set-386033/)

jimbo 11-24-2005 12:50 AM

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.

abhijeetudas 11-24-2005 11:57 PM

type env & check if
your terminal type variable is set.

should be something like

TERM=xterm-color
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!

jimbo 11-26-2005 01:31 AM

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.


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