How to fix "ksh: scp: not found. lost connection" error on AIX aix, scp, ksh, ksh: scp: not found. lost connection error
Using scp on some flavours of Unix can be tricky some times. For example, on AIX you meight have an error when trying to scp some files from a local directory to a remote directory on a remote server.
$ scp -r * 192.168.2.1:~/ ksh: scp: not found. lost connection
Then I noticed a difference:
On the local server:
local$ which scp /usr/bin/scp
And on the remote server:
remote$ which scp /usr/local/bin/scp
when invoked on the remote AIX server , scp loads the environment variable PATH from /etc/environment file. In this case on the remote AIX server there was:
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.