Skip to content

Commit 7cb1f8b

Browse files
IgerIger
authored andcommitted
- switch username back
1 parent 73bc785 commit 7cb1f8b

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/test/java/com/hierynomus/sshj/IntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class IntegrationTest {
3434

3535
private static final int DOCKER_PORT = 2222;
36-
private static final String USERNAME = "sickp";
36+
private static final String USERNAME = "sshj";
3737
private final static String SERVER_IP = System.getProperty("serverIP", "127.0.0.1");
3838

3939
@Test @Ignore // Should only be enabled for testing against VM

src/test/resources/Dockerfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
FROM sickp/alpine-sshd:7.5
2-
ADD https://raw.githubusercontent.com/Igerly/sshj/master/src/test/resources/id_rsa.pub /home/sickp/.ssh/authorized_keys
2+
3+
ADD https://raw.githubusercontent.com/Igerly/sshj/master/src/test/resources/id_rsa.pub /home/sshj/.ssh/authorized_keys
4+
5+
ADD test-container/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key
6+
ADD test-container/ssh_host_ecdsa_key.pub /etc/ssh/ssh_host_ecdsa_key.pub
7+
38
RUN \
4-
echo "root:sunshine" | chpasswd && \
5-
adduser -D -s /bin/ash sickp && \
6-
passwd -u sickp && \
7-
chown -R sickp:sickp /home/sickp
8-
9+
echo "root:smile" | chpasswd && \
10+
adduser -D -s /bin/ash sshj && \
11+
passwd -u sshj && \
12+
chmod 600 /etc/ssh/ssh_host_ecdsa_key && \
13+
chmod 644 /etc/ssh/ssh_host_ecdsa_key.pub && \
14+
chown -R sshj:sshj /home/sshj
15+

0 commit comments

Comments
 (0)