git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@151119 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9e15d89db4
commit
0785091c08
|
@ -107,6 +107,8 @@ public class CheckMethod {
|
|||
Channel channel = null;
|
||||
ChannelSftp c = null;
|
||||
boolean success = false;
|
||||
ServiceConfiguration p = new ServiceConfiguration();
|
||||
|
||||
|
||||
jsch.setKnownHosts("~/.ssh/known_hosts");
|
||||
String privateKey = "~/.ssh/id_rsa";
|
||||
|
@ -114,7 +116,7 @@ public class CheckMethod {
|
|||
jsch.addIdentity(privateKey);
|
||||
System.out.println("Private Key Added.");
|
||||
|
||||
session = jsch.getSession("root", "dataminer1-devnext.d4science.org");
|
||||
session = jsch.getSession("root", p.getStagingHost());
|
||||
System.out.println("session created.");
|
||||
|
||||
java.util.Properties config = new java.util.Properties();
|
||||
|
|
Loading…
Reference in New Issue