Fix #14981 ssh timeout

Only pass over the timeout value if it's specified.