- switch username back

This commit is contained in:
Iger
2017-12-03 22:49:29 +02:00
parent 73bc785ab4
commit 7cb1f8b11c
2 changed files with 14 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ import net.schmizz.sshj.userauth.UserAuthException;
public class IntegrationTest {
private static final int DOCKER_PORT = 2222;
private static final String USERNAME = "sickp";
private static final String USERNAME = "sshj";
private final static String SERVER_IP = System.getProperty("serverIP", "127.0.0.1");
@Test @Ignore // Should only be enabled for testing against VM

View File

@@ -1,8 +1,15 @@
FROM sickp/alpine-sshd:7.5
ADD https://raw.githubusercontent.com/Igerly/sshj/master/src/test/resources/id_rsa.pub /home/sickp/.ssh/authorized_keys
RUN \
echo "root:sunshine" | chpasswd && \
adduser -D -s /bin/ash sickp && \
passwd -u sickp && \
chown -R sickp:sickp /home/sickp
ADD https://raw.githubusercontent.com/Igerly/sshj/master/src/test/resources/id_rsa.pub /home/sshj/.ssh/authorized_keys
ADD test-container/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key
ADD test-container/ssh_host_ecdsa_key.pub /etc/ssh/ssh_host_ecdsa_key.pub
RUN \
echo "root:smile" | chpasswd && \
adduser -D -s /bin/ash sshj && \
passwd -u sshj && \
chmod 600 /etc/ssh/ssh_host_ecdsa_key && \
chmod 644 /etc/ssh/ssh_host_ecdsa_key.pub && \
chown -R sshj:sshj /home/sshj