You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2018/07/10 20:12:05 UTC
[airavata] branch staging updated: Setting default maximum sessions
for a ssh connection to 1
This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/staging by this push:
new 2de372e Setting default maximum sessions for a ssh connection to 1
2de372e is described below
commit 2de372ee367223fb8417563ffa10477c44c17228
Author: dimuthu <di...@gmail.com>
AuthorDate: Tue Jul 10 16:11:57 2018 -0400
Setting default maximum sessions for a ssh connection to 1
---
.../main/java/org/apache/airavata/helix/adaptor/SSHJAgentAdaptor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/SSHJAgentAdaptor.java b/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/SSHJAgentAdaptor.java
index 8b41db3..4349844 100644
--- a/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/SSHJAgentAdaptor.java
+++ b/modules/airavata-helix/agent-impl/sshj-agent/src/main/java/org/apache/airavata/helix/adaptor/SSHJAgentAdaptor.java
@@ -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;