use of org.apache.sshd.client.ServerKeyVerifier in project gitblit by gitblit.
the class SshUnitTest method getClient.
protected SshClient getClient() {
SshClient client = SshClient.setUpDefaultClient();
client.setServerKeyVerifier(new ServerKeyVerifier() {
@Override
public boolean verifyServerKey(ClientSession sshClientSession, SocketAddress remoteAddress, PublicKey serverKey) {
return true;
}
});
client.start();
return client;
}
Aggregations