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 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.