scp gives the warning "TERM environment variable not set"

Solution Verified - Updated -

Issue

When copying a file with scp to a remote server, the warning

TERM environment variable not set

is displayed. This is not shown when logging in with the ssh command. The TERM environment variable is set on both the local system and remote server.

Environment

  • Red Hat Enterprise Linux 5.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.