To prevent issues with connecting to devices that
use old key exchange algorithms, use the default NetconfSshClient
inside the NetconfCallHomeServer.
JIRA: NETCONF-887
Change-Id: I379c26281dcec6df10dcdbe0ccbfa8c3bea7e8f0
Signed-off-by: Peter Suna <[email protected]>
import java.util.concurrent.TimeUnit;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.netconf.client.NetconfClientSessionNegotiatorFactory;
+import org.opendaylight.netconf.nettyutil.handler.ssh.client.NetconfClientBuilder;
import org.opendaylight.netconf.shaded.sshd.client.SshClient;
public class NetconfCallHomeServerBuilder {
}
private static SshClient defaultSshClient() {
- return SshClient.setUpDefaultClient();
+ return new NetconfClientBuilder().build();
}
private static NetconfClientSessionNegotiatorFactory defaultNegotiationFactory() {