File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 3333public 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
Original file line number Diff line number Diff line change 11FROM 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+
38RUN \
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+
You can’t perform that action at this time.
0 commit comments