Install phpseclib library into your project by using composer command
$ composer require phpseclib/phpseclib
Then create custom form for store the SFTP credentials and SFTP file button.
Below I have added the custom form code for your reference.