Added images including the error overlay for when connections are
closed. Made the resulting label provider public so it can be reused
by the launch bar.
Fixed a bug with the JschConnection factory which was creating new
connections everytime asked resulting in great weirdness. Added getting
list of services to the IRemoteConnectionType API and separated
out the three types of services.
Added open and close connection commands for the Connections view.
Changed connection type capabilities to booleans and removed unused
ones.
Removed launch config service. Found a better way to pass targets
to launch configs that will actually work.
Change-Id: I99d85f72d496f42d6ba790bd1b91943ea869c12b
Signed-off-by: Doug Schaefer <dschaefer@qnx.com>
Adds a terminal console which can be opened by selecting Open Console >
Terminal Console and selecting a remote connection which supports the
command shell service. If a console is already open for that remote
connection it will be shown and if one doesn't exist then a new one will
be created. Buttons for connecting, disconnecting, scroll lock, and
closing the console are also available.
Also adds a local command shell with PTY support. Also added some
syncronization around the connections in the connection type.
Moved the Open Terminal to console plug-in and renamed it Open
Command Shell.
Also fixed missing serial port feature from the remote repo.
Change-Id: I84282b04813471bb01385a328ebc144bdf0e6a28
Signed-off-by: Doug Schaefer <dschaefer@qnx.com>
Added JSchCommandShellService which creates a ChannelShell through JSch
in order to open a remote terminal.
Change-Id: Ib7ddeb3f9c964ab32130baf99a8d70d36605c3d8
Signed-off-by: Matthew Bastien <mbastien@qnx.com>
v2 of Remote API. New Services architecture.
Connections are now stored in preferences and loaded by the framework.
Attributes are stored in the preferences. Secure attributes are stored
in the secure preferences. Remote services renamed to connection types.
Remote connections broken up into services. JSch and Local connection
types have been updated to new architecture.
Also moved the tests from core.tests to jsch.core.tests since they
are actually JSch tests and need to reference attribute names from
the jsch.core plug-in.
This is just phase one. Many more changes are expected to clean up
and to fix bugs this introduces.
Change-Id: I62ad2567b0c5ca7d277649879a8d16bec7058d5f
Signed-off-by: Doug Schaefer <dschaefer@qnx.com>
Command proxy does not work if both the host and the gateway have MaxSession=1
(caused by 356657).
Add support in JschConnection for a connection which has a session but isn't
fully setup. Such a connection isn't considered open. And if it is opened after
it already has a session without setupFully=false (default), then all setup
setups are done.
Also change that getProxyConnection returns null not a LocalConnection for
a local command. This reduces the dependency on LocalConnection from within
jsch.core.*.
Change-Id: I64d05e69749d96248d2f40bd2db021d809cb04a9
Put password the first in PreferredAuthentications so that password is
used when password is selected by the user.
Also
- remove the "File with private key" field
- remove the get/setKeyFile from the JSchConnection
- add a link to the network connections preference page
- swap the order of the public key/password areas
- make public key the default
Change-Id: I5aea011e41fd0097aa51b052ab1386d431362ec8
Allows to connect over any ssh server as gateway or over any other
proxy by executing a local or remote command (such as netcat, corkscrew, ...).
Change-Id: I413c22cb588d8560d8db9ac877fb04f8331456aa
Execute loadEnv once before trying sftp to make sure exec works.
This way we don't assume it is an sftp problem if the ssh
connection doesn't work at all. To make this work throw an
exception if ExecCommand fails (if exit code != 0). ExecCommand doesn't
have a way to check exit code. Thus this also fixes that if any command
executed with ExecCommand failed, the calling code didn't notice.
Change-Id: I30b8baa0d87166e179fad67643e31a9f17c8ead2
Signed-off-by: Roland Schulz <roland@utk.edu>
Also removes unnecessary code for firstTry for password/
keyboard-interactive. And fixes firstTry for pubKey auth.
JSchConnection.newSession is storing the password with
session.setPassword. This password is used first before
jsch is using the UserInfo to prompt. Thus it isn't
necessary to return from the prompt first the same
stored password.
Change-Id: I17a4ae057fc595c2afe452c550bf47b70b696ef4