Hi Martin
Thank you for the reply - I have tweaked the script so it calls the configured connection accurately for now and it looks like it is working, but I would like to be using best practice.
When I try using the format suggested in the thread and in the log, there seems to be a problem logging in:
. 2019-03-01 08:56:05.393 Host key matches cached key
. 2019-03-01 08:56:05.393 Initialised AES-256 SDCTR client->server encryption
. 2019-03-01 08:56:05.393 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2019-03-01 08:56:05.393 Initialised AES-256 SDCTR server->client encryption
. 2019-03-01 08:56:05.393 Initialised HMAC-SHA-256 server->client MAC algorithm
! 2019-03-01 08:56:05.443 Using username "(Correct User name)".
. 2019-03-01 08:56:05.480 Server offered these authentication methods: password,publickey,keyboard-interactive
. 2019-03-01 08:56:05.480 Attempting keyboard-interactive authentication
. 2019-03-01 08:56:05.505 Prompt (keyboard interactive, "SSH server: password", "Using keyboard-interactive authentication.
. 2019-03-01 08:56:05.505 Enter password for (Correct User name)", "Password:")
. 2019-03-01 08:56:05.505 Using stored password.
. 2019-03-01 08:56:20.506 Waiting for data timed out, asking user what to do.
. 2019-03-01 08:56:20.515 Asking user:
. 2019-03-01 08:56:20.515 **Host is not communicating for 15 seconds.
. 2019-03-01 08:56:20.515
. 2019-03-01 08:56:20.515 Wait for another 15 seconds?** ()
. 2019-03-01 08:56:37.023 Data has arrived, closing query to user.
. 2019-03-01 08:56:37.023 Received disconnect message (by application)
. 2019-03-01 08:56:37.023 Disconnection message text: Idle connection
. 2019-03-01 08:56:37.023 Server sent disconnect message
. 2019-03-01 08:56:37.023 type 11 (by application):
. 2019-03-01 08:56:37.023 "Idle connection"
. 2019-03-01 08:58:01.744 --------------------------------------------------------------------------