PE-362: improve SSH connection timeout handling

This patch improves the handling of a timeout during SSH connection
establishment.
PE-362: test for imporved SSH connection timeout handling

This patch adds a test for the improved handling of the SSH connection timeout.
Merge pull request #129 from mruzicka/PE-362_better_SSH_timeout_handling

PE-362: improve SSH connection timeout handling