免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4125 | 回复: 3
打印 上一主题 下一主题

SFTP Status [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-30 16:59 |只看该作者 |倒序浏览
Hi All,\r\n\r\nNeed some helps here. I\'m trying to write a sftp script in unix env to upload my files to the server. On top of it, I need to have the logic to check whether all files are successful uploaded to the server or not. Anyone knows how to do this? Spent few days searching Internet but no luck, couldn\'t get the solution

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2010-03-30 22:49 |只看该作者
上传完事之后,做个cksum,比较一下

论坛徽章:
1
天秤座
日期:2013-10-23 13:20:42
3 [报告]
发表于 2010-03-31 11:13 |只看该作者
“I need to have the logic to check whether all files are successful uploaded to the server or not“\r\nwell,In my opinion,all files mentioned above should be the filesystem(partition,or lv ),that means the location in which all files were created. so just check this !

论坛徽章:
0
4 [报告]
发表于 2010-04-05 01:06 |只看该作者
SFTP does add overhead to the transfer of files. As a file is transferred between client and server, it is broken up into smaller chunks called \"packets.\" For example, suppose each packet is 32KB. The SFTP protocol does a checksum on each 32KB packet as it is sent, and includes that checksum along with that packet. The receiver gets that packet and decrypts the data, and then verifies the checksum. The checksum itself is \"stronger\" than the CRC32 checksum (because SFTP uses a 128-bit or higher checksum, such as MD5 or SHA, and because this is done on each and every packet, there is a very granular integrity checking that is accomplished as part of the transfer. Thus, the protocol itself is slower (because of the additional overhead), but the successful completion of a transfer means, de facto, that it has be transferred integrally and there is no need for an additional check.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP