Is there a way I could get the md5 hash of a file on a remote server?
I'm looking for a command like
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