[lug] Checksum & scp

Jeffrey Siegal jbs at quiotix.com
Mon Mar 5 09:46:41 MST 2001


Kyle Moore wrote:
> The other thing I would like to implement is file integrity. I have a
> couple of ideas but am looking for other opinions. Something like having
> a checksum generated automatically before the file is sent and then I
> can compare the checksum after I receive the file.

safe_ssh()
{
   #usage:   safe_ssh local_file remote_host remote_name
   md5sum $1
   scp $1 $2:$3
   ssh $2 md5sum $3
}



More information about the LUG mailing list