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>
4.4milestones repo is gone now and in order to use final 4.4 Tycho 0.20
is needed.
Also ignore target/ dirs to get sane output of git status.
Change-Id: Iab3a807645c9fce737de5e5a8239d89d0c63eaf3
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
4.4milestones repo is gone now and in order to use final 4.4 Tycho 0.20
is needed.
Also ignore target/ dirs to get sane output of git status.
Change-Id: Iab3a807645c9fce737de5e5a8239d89d0c63eaf3
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
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