When using scp to copy a file the file fails to transfer, however there is no error message.
This issue can occur due echo commands within your .bashrc and how the scp program handles the output from these commands. This is a known bug within scp which can be viewed here.
To resolve this the following can be added to the top of your .bashrc file.
# If not running interactively, don't do anything [[ $- == *i* ]] || return
Latest posts by Rick Donato (see all)
- How to Configure a BIND Server on Ubuntu - March 15, 2018
- What is a BGP Confederation? - March 6, 2018
- Cisco – What is BGP ORF (Outbound Route Filtering)? - March 5, 2018
Want to become a UNIX expert?
Here is our hand-picked selection of the best courses you can find online:
UNIX Administration Fundamentals
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial