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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content