Skip to content

Commit 994b385

Browse files
authored
Update testcontainers/sshd version to 1.2.0 (#8574)
1 parent e5c8b1a commit 994b385

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

core/src/main/java/org/testcontainers/containers/PortForwardingContainer.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)