I am wondering from within the ssh plugin if there is a way of specifying a timeout once a command is executed? Occasionally it seems like a command I execute does not generate any error but the session is just staying open. I have added some debug code to see if I can catch exactly whats going on.
I don't think that currently there is a way to specify timeout. The SSH library we are using in SSH plug-in (JSch) allows such timeout value to be provided when connecting a session but we don't expose it as an configurable option. I'm not 100% sure, though, so I have to check the source.
Is there any new information regarding this subject? I have an Ansible playbook that's fairly long-running and my SSH session appears to be crapping out after about 30 minutes.