@nacx I didn't tried your code by hand, but I think we have different observations because in your example `channel` was not closed -- without my commit even manual closing of channel lead to leaked sessions.
If closing of channel sessions when context closed is desirable, then we should accumulate unclosed session objects in `SshjSshClient` and wipe them in `@PreDestroy public void disconnect()`. Does this makes sense? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/778#issuecomment-117298732
