Raise timeout exception for ssh commands.

If a command executed by paramiko takes more than 10 seconds to return,
raise a timeout exception. Also raise a timeout exception in case of
connection interruptions.