Getting MD5 checksum on the remote server using JSCH

偶尔善良 提交于 2019-12-01 00:26:01

Most Unix systems have an md5sum command. You could invoke that on the remote server to retrieve the hash.

$ md5sum /tmp/test
34a27208f62ff3bdae031c9e8a354ac3  /tmp/test

The Jsch website contains an example that shows how to invoke a command on the remote server. This could easily be adapted to run the md5sum command.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!