RSE set host port number programmatically [message #1115705] |
Tue, 24 September 2013 13:03 |
Mazaeva Darya Messages: 3 Registered: May 2013 |
Junior Member |
|
|
I am creating connection and need to set host port programmaticaly because it is 22 by default. Do anybody know how to do this?
...
ISystemRegistry systemRegistry = RSECorePlugin.getTheSystemRegistry();
ISystemProfile profile =
systemRegistry.getSystemProfileManager().getDefaultPrivateSystemProfile();
String profileName = profile.getName();
String hostAlias = "myhost";
String hostname = "myhost";
String userId = "myid";
IRSESystemType systemType =
RSECorePlugin.getTheCoreRegistry().getSystemTypeById(IRSESystemType.SYSTEMTYPE_SSH_ONLY_ID);
IHost host = systemRegistry.createHost(profileName, systemType, hostAlias,
hostname, null, userId, IRSEUserIdConstants.USERID_LOCATION_HOST, null);
...
Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.02628 seconds