Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use new sshd:1.2.0 image #8574

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading