简体   繁体   中英

c# - vsftpd and FluentFTP - how automatic file checking with "Ftp.Gethash("FileName")

Programming question in C#
OS : Debian 9
FTP server : vsftpd
Dll : FluentFtp

FluentFTP provides many methods for verify file integrity by hash without downloading it, for example:

GetHash() - Gets the hash of an object on the server using the currently selected hash algorithm. Supported algorithms are available in the HashAlgorithms property. You should confirm that it's not equal to FtpHashAlgorithm.NONE (which means the server does not support the HASH command).`

But when I try to call:

Ftp.HashAlgorithms.ToString());

I get

None

When I try to call:

Ftp.GetHash("test.exe"));

I get:

FluentFTP.FtpCommandException: 'Unknown command.'

When I try to call:

Ftp.SetHashAlgorithm(FtpHashAlgorithm.MD5);

I get:

System.NotImplementedException: 'The hash algorithm MD5 was not advertised by the server`

So, it appears that my vsftpd server doesn't support file hashing. Someone have a solutions?

Thanks,

vsftpd FTP server does not support any checksum calculation command.


For similar questions see:


Common replacement for vsftpd that supports checksum calculation is ProFTPD (with mod_digest module ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM