File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
core/src/main/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,9 @@ public enum PortForwardingContainer {
2424
2525 private static ContainerDef DEFINITION = new ContainerDef () {
2626 {
27- setImage (DockerImageName .parse ("testcontainers/sshd:1.1 .0" ));
27+ setImage (DockerImageName .parse ("testcontainers/sshd:1.2 .0" ));
2828 addExposedTcpPort (22 );
2929 addEnvVar ("PASSWORD" , PASSWORD );
30- setCommand (
31- "sh" ,
32- "-c" ,
33- // Disable ipv6 & Make it listen on all interfaces, not just localhost
34- // Enable algorithms supported by our ssh client library
35- "echo \" root:$PASSWORD\" | chpasswd && /usr/sbin/sshd -D -o PermitRootLogin=yes " +
36- "-o AddressFamily=inet -o GatewayPorts=yes -o AllowAgentForwarding=yes -o AllowTcpForwarding=yes " +
37- "-o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostkeyAlgorithms=+ssh-rsa "
38- );
3930 }
4031 };
4132
You can’t perform that action at this time.
0 commit comments