Add support for ~/.ssh/config PreferredAuthentications
commit7726f9b52722ad55f33b4f57c10a1ee57769b314
authorShawn O. Pearce <spearce@spearce.org>
Tue, 16 Sep 2008 15:44:28 +0000 (16 08:44 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 16 Sep 2008 21:31:08 +0000 (16 23:31 +0200)
tree00424c6dfcec07a96ee2a3d65fdf1a4ad0f6cf75
parent8fa60d3fa88c1f5403d8ca82eb8c748fe00780ea
Add support for ~/.ssh/config PreferredAuthentications

Some configurations may wish to disable interactive methods of
authentication, such as when running from automated cron or batch
style jobs that have no user available.

Typically in an OpenSSH based system this would be configured on a
per-host basis in the current user's ~/.ssh/config file, by setting
PreferredAuthentications to the list of authentication methods
(e.g. just "publickey") that are reasonable.

JSch honors this configuration setting, but we need to transfer it
from our own OpenSshConfig class, otherwise it has no knowledge of
the setting.

http://code.google.com/p/egit/issues/detail?id=33

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.egit.ui/src/org/spearce/egit/ui/EclipseSshSessionFactory.java
org.spearce.jgit.test/tst/org/spearce/jgit/transport/OpenSshConfigTest.java
org.spearce.jgit/src/org/spearce/jgit/transport/DefaultSshSessionFactory.java
org.spearce.jgit/src/org/spearce/jgit/transport/OpenSshConfig.java