How to use ssh-client with connection details known only at run-time