LocalFileManager is renamed to LocalFileService to fit in with the
standard naming.
Change-Id: I2ac49c64346709bdde0f3b38034cefaea3df913f
Signed-off-by: Doug Schaefer <dschaefer@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
connection name is correctly escaped.
Attempt to open connection before performing any EFS operations.
Change-Id: I1f60b70873e411ba37a2115072df09828fdf4c27
Signed-off-by: Greg Watson <g.watson@computer.org>
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>
Shouldn't be necessary because it should be the default
order. But on Linux and Windows (but not OSX) it somehow
isn't the correct without.
Change-Id: Ifb0babe7c0014b07510ef9789e274f1d8e83829c
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
Removing it (especially from the build pom.xml) removes the circular
dependency problem.
Change-Id: If57ff21f72f6d04fe3ac79314a112e2bdc5848b2
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>