Skip to content

Commit

Permalink
Update testcontainers/sshd version to 1.2.0 (#8574)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya authored Apr 24, 2024
1 parent e5c8b1a commit 994b385
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,9 @@ public enum PortForwardingContainer {

private static ContainerDef DEFINITION = new ContainerDef() {
{
setImage(DockerImageName.parse("testcontainers/sshd:1.1.0"));
setImage(DockerImageName.parse("testcontainers/sshd:1.2.0"));
addExposedTcpPort(22);
addEnvVar("PASSWORD", PASSWORD);
setCommand(
"sh",
"-c",
// Disable ipv6 & Make it listen on all interfaces, not just localhost
// Enable algorithms supported by our ssh client library
"echo \"root:$PASSWORD\" | chpasswd && /usr/sbin/sshd -D -o PermitRootLogin=yes " +
"-o AddressFamily=inet -o GatewayPorts=yes -o AllowAgentForwarding=yes -o AllowTcpForwarding=yes " +
"-o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostkeyAlgorithms=+ssh-rsa "
);
}
};

Expand Down

0 comments on commit 994b385

Please # to comment.