bash: scp: command not found lost connection
This error is similar to the
- Resolution for bash orted command not found and
- Unable to source path during non-interactive ssh session
I'm assuming you have in your /etc/ssh/sshd_config already allows
PermitRootlogin yes
Step 1: To solve this issue, find out where is your scp command resides in your remote computer
# which scp
Step 2: Put the path into your root .bashrc
export PATH=/usr/bin:{$PATH}
2 comments:
This worked great for me. Exactly what I needed.
I missed setting it in the path. Thanks for providing the tip on
scp command in unix
Post a Comment