Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221
Rep:
Checking MD5 in SFTP
Hello Folks,
I am uploading some files to the ftp server using "sftp". I want to check the authenticity of the transferred files but the problem is that "md5" is not a supported command (interactive) command that can be used along with "sftp"
Is there any other way I can check the md5 of the transferred files.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
sftp doesn't allow remote execution of commands, so if you cannot ssh to the machine, you don't have a way to remotely run md5.
You could do ls -l after the transfer (in sftp) and make sure the size is right down to the byte, but that doesn't necessarily mean it's not corrupted. You could also upload the md5 fingerprint along with the file so the other side can check that they match. You could set the md5 sum as the file name so you can inspect that it made it unaltered, something like this: README.txt-cd5e1e13f12927d85bcf7afd3c24e2b3 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.