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
6e05178ecc
commit
b8305fb494
|
@ -107,6 +107,8 @@ public class CheckMethod ***REMOVED***
|
||||||
Channel channel = null;
|
Channel channel = null;
|
||||||
ChannelSftp c = null;
|
ChannelSftp c = null;
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
|
ServiceConfiguration p = new ServiceConfiguration();
|
||||||
|
|
||||||
|
|
||||||
jsch.setKnownHosts("~/.ssh/known_hosts");
|
jsch.setKnownHosts("~/.ssh/known_hosts");
|
||||||
String privateKey = "~/.ssh/id_rsa";
|
String privateKey = "~/.ssh/id_rsa";
|
||||||
|
@ -114,7 +116,7 @@ public class CheckMethod ***REMOVED***
|
||||||
jsch.addIdentity(privateKey);
|
jsch.addIdentity(privateKey);
|
||||||
System.out.println("Private Key Added.");
|
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.");
|
System.out.println("session created.");
|
||||||
|
|
||||||
java.util.Properties config = new java.util.Properties();
|
java.util.Properties config = new java.util.Properties();
|
||||||
|
|
Loading…
Reference in New Issue