File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/com/cloudbees/jenkins/plugins/sshagent Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 16
16
import java .security .interfaces .RSAPublicKey ;
17
17
import java .util .concurrent .atomic .AtomicInteger ;
18
18
import java .util .logging .Logger ;
19
+
20
+ import org .apache .sshd .common .config .keys .KeyUtils ;
19
21
import org .apache .sshd .server .channel .ChannelSession ;
20
22
import org .apache .sshd .server .command .Command ;
21
23
import org .apache .sshd .server .Environment ;
@@ -74,7 +76,7 @@ protected void startMockSSHServer() throws Exception {
74
76
sshd .setPort (getValidPort ());
75
77
sshd .setHost (SSH_SERVER_HOST );
76
78
SimpleGeneratorHostKeyProvider hostKeyProvider = new SimpleGeneratorHostKeyProvider (Paths .get (hostKey .getPath ()));
77
- hostKeyProvider .setAlgorithm (/* TODO when upgrading sshd: KeyUtils.RSA_ALGORITHM */ "RSA" ); // http://stackoverflow.com/a/33692432/12916
79
+ hostKeyProvider .setAlgorithm (KeyUtils .RSA_ALGORITHM );
78
80
sshd .setKeyPairProvider (hostKeyProvider );
79
81
sshd .setShellFactory (new ShellFactory () {
80
82
@ Override
You can’t perform that action at this time.
0 commit comments