diff --git a/DockerFile b/DockerFile index 9432e12..3d6cafb 100644 --- a/DockerFile +++ b/DockerFile @@ -17,6 +17,7 @@ RUN dnf -y update && \ dnf -y install openssh-clients && \ dnf -y install sshpass RUN echo 'BigFiles:123456' | chpasswd +RUN echo "Port 2000" >> /etc/ssh/sshd_config RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config WORKDIR /etc/ssh diff --git a/scripts/ssh/port_forward.sh b/scripts/ssh/port_forward.sh index c454bad..b5bb6d9 100644 --- a/scripts/ssh/port_forward.sh +++ b/scripts/ssh/port_forward.sh @@ -1,2 +1,2 @@ #!/bin/bash -sshpass -p '123456' ssh -L 23231:gitee.com:22 -o ServerAliveInterval=20 -o StrictHostKeyChecking=no -gNf localhost \ No newline at end of file +sshpass -p '123456' ssh -L 23231:gitee.com:22 -o ServerAliveInterval=20 -o StrictHostKeyChecking=no -gNf -p 2000 localhost \ No newline at end of file