(*Session).Clone() incorrectly copied the reference to the old SSHOptions rather than cloning it as well.
This means that any modifications to the SSH options, whether through the old session or the new, would be manifested in the other session. This is clearly undesired behavior of a clone method, so we now duplicate the SSHOptions as well.
(*Session).Clone()
incorrectly copied the reference to the oldSSHOptions
rather than cloning it as well.This means that any modifications to the SSH options, whether through the old session or the new, would be manifested in the other session. This is clearly undesired behavior of a clone method, so we now duplicate the
SSHOptions
as well.