Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 75313 Details for
Bug 198790
[api][ssh] Request API to avoid UI dialogs during connect, especially Jsch HostKeyCheck
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
in this code snipped i have specified the host connection, user authenticity, and launching the shell.
code snippet (text/plain), 1.46 KB, created by
haribabu mallavelli
on 2007-08-03 05:49:04 EDT
(
hide
)
Description:
in this code snipped i have specified the host connection, user authenticity, and launching the shell.
Filename:
MIME Type:
Creator:
haribabu mallavelli
Created:
2007-08-03 05:49:04 EDT
Size:
1.46 KB
patch
obsolete
>My Final goal is to display the remote process list on UI using the RSE API. In this regard the UI calls the remoteExec(), remoteExec() will calls the launchHost(). > >code to connecting to the host >============================== > for (int i = 0; i < systemTypes.length; i++) { > if (systemTypes[i].getName().equals("SSH Only")) > systemType = systemTypes[i]; > } > ISystemRegistry registry = null; > registry = RSECorePlugin.getDefault().getSystemRegistry(); > ISystemProfile profile = registry.getSystemProfileManager() > .getDefaultPrivateSystemProfile(); > host = registry.getHost(profile, connectionName); > if (host == null) { > host = registry.createHost(systemType, connectionName, hostAddress, > "Remote connection"); > } > >Code to get the user authenticity for a remote system >================================================= > ISubSystem[] subSystems = host.getSubSystems(); > int i; > for (i = 0; subSystems != null && i < subSystems.length; i++) { > if (subSystems[i] instanceof IShellServiceSubSystem) > break; > } > subsystem = subSystems[i]; > Display.getDefault().syncExec(new Runnable() { > public void run() { > try { > subsystem.connect(true, null); > } catch (Exception e) { > } > } > }); > >Launching the Shell >=================== > try { > Thread.sleep(1500); > } catch (InterruptedException e1) { > e1.printStackTrace(); > } > String env[] = new String[0]; > hostShell = shellService.launchShell("", env, new NullProgressMonitor()); > hostShell.writeToShell(command);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 198790
: 75313