I created a program via JSch to upload files to a Linux host via SFTP. After uploading, I will use ChannelExec from JSch to pass 'md5sum' command to the destination Linux host to get back the checksum of the file I just uploaded so that I can verify the integrity.
Now for some reason the Linux Host will be replaced by containers. For this, I created a SSHD program by Apache mina running on a Pod to perform the same function of SFTP. Now I can upload files to this SSHD program, but I am not able to send the 'md5sum' command now.
I tried to research a bit and it seems like I need to implement a commandFactory to take care of this. However I could not find any example or hint how exactly I can implement it. May I know if anyone has clue on this?
Thank you very much.
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo: