Bug 35761 add's a UI for configuring SFTP/FTP endpoints, the sftp_file.pl utility script introduced in bug 36766 should be updated to utilise this.