I just copied a few directories and files using SCP from a SSH remote server. How can I check if the files were copied exactly and there were no errors or no files were skipped?


You can use md5sum * > chksum.txt on the source side, transfer the chksum.txt file using scp and then on the destination side do:

md5sum -c chksum.txt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.