Why do I see error "bash: scp: command not found lost connection" while using scp command ?

Solution Unverified - Updated -

Issue

  • While using scp command to copy a local file to remote server, after input the password of user in remote server getting below error.
$ scp File.txt RemoteUserName@RemoteHostname:
RemoteUserName@RemoteHostname's password: 
bash: scp: command not found
lost connection

Environment

  • Red Hat Enterprise Linux(Minimal installation)

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