Enable 'curve25519-sha256@libssh.org' in DefaultConfig (Fixes #464)

This commit is contained in:
Jeroen van Erp
2018-11-16 11:48:15 +01:00
parent f71d34e106
commit 0301d4537f
4 changed files with 19 additions and 8 deletions

View File

@@ -109,6 +109,7 @@ public class DefaultConfig
if (bouncyCastleRegistered) {
setKeyExchangeFactories(
new Curve25519SHA256.Factory(),
new Curve25519SHA256.FactoryLibSsh(),
new DHGexSHA256.Factory(),
new ECDHNistP.Factory521(),
new ECDHNistP.Factory384(),

View File

@@ -61,7 +61,6 @@ import java.io.IOException;
import java.net.ServerSocket;
import java.nio.charset.Charset;
import java.security.KeyPair;
import java.security.PublicKey;
import java.util.*;
/**
@@ -360,8 +359,7 @@ public class SSHClient
* @throws TransportException if there was a transport-layer error
*/
public void authPublickey(String username, KeyProvider... keyProviders)
throws UserAuthException,
TransportException {
throws UserAuthException, TransportException {
authPublickey(username, Arrays.<KeyProvider>asList(keyProviders));
}