LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-04-2008, 06:48 AM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
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.

P.S: I can't "ssh" to the ftp server.
 
Old 08-04-2008, 08:32 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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 .
 
Old 08-05-2008, 01:32 AM   #3
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
thanks chort for your suggestion.
 
  


Reply

Tags
ftp, kalra, md5, parag, paragkalra


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error checking CDs with recursive MD5 un134sh3d Linux - General 2 06-20-2005 05:22 PM
checking MD5 of an .iso from shell adnanm Linux - Newbie 1 06-19-2005 07:31 AM
checking MD5 hash issey Linux - Newbie 4 03-31-2005 01:15 AM
How to use MD5 checksum for checking package? hus Linux - Newbie 3 01-24-2005 09:38 AM
Checking software: PGP, MD5 etc.. tarballed Linux - Newbie 1 07-23-2003 01:22 PM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration