I've used SSH for years. I used to use SSH Communications SSH client and server. As with all software I install that I don't want to re-install every time I upgrade to a newer Linux distribution I put it in /usr/local. Once OpenSSH became a standard feature in Slackware, I completely forgot about the old SSH stuff and it never seemed to have caused any problems.
Until now.
I have been using SCP a lot lately to transfer files between my home computer and the server on which my website is hosted. This has worked well except when copying a file from the server to home computer by executing scp at the server's command line. I was getting this error:
scp: warning: Executing scp1 compatibility.
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1 is in your PATH).
lost connection
I scratched my head about this for a while. The mention of "SCP1" pointed me to that old installation of the commercial SSH in /usr/local which, I thought, should not have been used by OpenSSH's SSH daemon. Just to be safe, however, I deleted the old binaries, and voil�, the problem was solved.
It appears that OpenSSH was, in fact, attempting to use the old SSH binaries to perform SCP operations. This was possibly caused by /usr/local/bin being listed before /usr/bin in the PATH.
As usual, this was a fun exercise. Not only was I happy to get SCP working properly in both directions, but I also realized how much junk I really have in /usr/local. Perhaps now would be a good time to re-format that partition and re-install the latest versions of the stuff in there I actually still use.

