Added keep-alive support in SSH.

Fixes #137