closes #14544

@grischa can you take a look at this?

I think this will solve the problem, just moving it down and changing it over to ssh_kwargs.

Thanks
Daniel