mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
- switch username back
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
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:sunshine" | chpasswd && \
|
||||
adduser -D -s /bin/ash sickp && \
|
||||
passwd -u sickp && \
|
||||
chown -R sickp:sickp /home/sickp
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user