openSftp

Open an SFTP session for file transfer.

Opens a new session channel, starts the "sftp" subsystem, and performs SFTP version negotiation.

Return

SftpResult.Success with the client, or an error variant