I recently upgraded a box to 24.04 and several scripts using scp
are failing.
They work perfectly on an older box but the new box can't copy the files and results in a "No such file or directory" error. Same with rsync
.
ssh
works perfectly, it's just copying files that fails.
I have checked and the old box uses openssh 8.9p1 and the receiving box uses openssh 8.2p1. However, the new 24.04 box uses 9.6p1, so I'm guessing it's an ssh
compatibility thing between versions.
I currently can't upgrade OpenSSH on the receiving host, so does anyone have any suggestions on what could be done to get scp
working again? I am hoping some sort of config change may help it work with the older version on the receiving box.
-O
to request legacy scp protocol so I'd try that as a first step