Setting default maximum sessions for a ssh connection to 1
@@ -62,7 +62,7 @@ public class SSHJAgentAdaptor implements AgentAdaptor {
sshjClient = new PoolingSSHJClient(defaultConfig, host, 22);
sshjClient.addHostKeyVerifier((hostname, port, key) -> true);
- sshjClient.setMaxSessionsForConnection(10);
+ sshjClient.setMaxSessionsForConnection(1);
PasswordFinder passwordFinder = passphrase != null ? PasswordUtils.createOneOff(passphrase.toCharArray()) : null;
