When using Sftp.Bind
, the SFTP channel is created within the specified SSH session, so if you already call KeepAlive
for that SshSession
, there is no need to call it for every Sftp
instance bound to that sessions. Calling KeepAlive
for multiple Sftp
instances sharing the same SSH session would have no benefit, but it would not cause any issues either because SSH packets send by KeepAlive
are very short.
This said, it's usually not needed to bind multiple intances of Sftp
to a single SshSession
because even a single Sftp
object supports multiple concurrent operations (unlike most other Rebex classes).