Is there a way I could get the md5 hash of a file on a remote server?
I'm looking for a command like
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
AFAIK there is no remote md5.
The closest you can get is to execute the command on the remote server:
ssh hlin117@server md5sum /path/to/file.txt
md5sum must be installed on the remote server.
Alternatively, get the file and do it locally:
scp hlin117@server:/path/to/file.txt . md5sum file.txt rm file.txt
Or, as @Cyrus pointed out:
ssh hlin117@server cat /path/to/file.txt | md5sum