Commit 29cf3a62 authored by Administrator's avatar Administrator

update

parent 19dc449c
Pipeline #2345 failed with stages
...@@ -56,12 +56,12 @@ dependencies { ...@@ -56,12 +56,12 @@ dependencies {
implementation 'org.slf4j:slf4j-api:1.7.31' implementation 'org.slf4j:slf4j-api:1.7.31'
implementation project(':sshd-core') implementation project(':sshd-core')
implementation project(':sshd-common') implementation project(':sshd-common')
// implementation('org.apache.sshd:sshd-scp:2.7.0') implementation('org.apache.sshd:sshd-scp:2.7.0')
// { {
// exclude group: 'org.apache.sshd' exclude group: 'org.apache.sshd'
// } }
// implementation 'org.bouncycastle:bcpkix-jdk15on:1.69' implementation 'org.bouncycastle:bcpkix-jdk15on:1.69'
// implementation project(':bcpkix-jdk15on') // implementation project(':bcpkix-jdk15on')
// implementation project(':bcprov-jdk15on') // implementation project(':bcprov-jdk15on')
......
...@@ -10,7 +10,7 @@ import org.apache.sshd.common.keyprovider.ClassLoadableResourceKeyPairProvider; ...@@ -10,7 +10,7 @@ import org.apache.sshd.common.keyprovider.ClassLoadableResourceKeyPairProvider;
import org.apache.sshd.common.util.security.SecurityUtils; import org.apache.sshd.common.util.security.SecurityUtils;
import org.apache.sshd.common.util.security.bouncycastle.BouncyCastleKeyPairResourceParser; import org.apache.sshd.common.util.security.bouncycastle.BouncyCastleKeyPairResourceParser;
//import org.apache.sshd.scp.server.ScpCommandFactory; //import org.apache.sshd.scp.server.ScpCommandFactory;
//import org.apache.sshd.scp.server.ScpCommandFactory; import org.apache.sshd.scp.server.ScpCommandFactory;
import org.apache.sshd.server.SshServer; import org.apache.sshd.server.SshServer;
import org.apache.sshd.server.auth.password.AcceptAllPasswordAuthenticator; import org.apache.sshd.server.auth.password.AcceptAllPasswordAuthenticator;
import org.apache.sshd.server.auth.pubkey.AcceptAllPublickeyAuthenticator; import org.apache.sshd.server.auth.pubkey.AcceptAllPublickeyAuthenticator;
...@@ -123,7 +123,7 @@ public class SSHD { ...@@ -123,7 +123,7 @@ public class SSHD {
SshServer sshd = SshServer.setUpDefaultServer(); SshServer sshd = SshServer.setUpDefaultServer();
sshd.setPort(ssdServerPort); sshd.setPort(ssdServerPort);
sshd.setShellFactory(new ProcessShellFactory("bash", "sh")); sshd.setShellFactory(new ProcessShellFactory("bash", "sh"));
// sshd.setCommandFactory(new ScpCommandFactory()); sshd.setCommandFactory(new ScpCommandFactory());
SecurityUtils.setKeyPairResourceParser(BouncyCastleKeyPairResourceParser.INSTANCE); SecurityUtils.setKeyPairResourceParser(BouncyCastleKeyPairResourceParser.INSTANCE);
sshd.setKeyPairProvider(new ClassLoadableResourceKeyPairProvider(SSHD.class.getClassLoader(), "assets/sshdroid.pem")); sshd.setKeyPairProvider(new ClassLoadableResourceKeyPairProvider(SSHD.class.getClassLoader(), "assets/sshdroid.pem"));
sshd.setPasswordAuthenticator(AcceptAllPasswordAuthenticator.INSTANCE); sshd.setPasswordAuthenticator(AcceptAllPasswordAuthenticator.INSTANCE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment