Honor timeout while fetching via ssh.

Timeout setting should be taken into consideration while fetching
files through ssh.