FAQ
How do I cancel sftp file transfer?
Implement your own com.jcraft.jsch.SftpProgressMonitor? interface and return false from its count method whenever you want to cancel the file transfer.