Skip to content

Commit

Permalink
edit: edit DockerFile
Browse files Browse the repository at this point in the history
调试测试环境,进行ssh端口转发时需要使用1024以上的端口,这里选择2000端口
  • Loading branch information
Zherphy committed Dec 6, 2024
1 parent 3f833eb commit d78e15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/ssh/port_forward.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
sshpass -p '123456' ssh -L 23231:gitee.com:22 -o ServerAliveInterval=20 -o StrictHostKeyChecking=no -gNf localhost
sshpass -p '123456' ssh -L 23231:gitee.com:22 -o ServerAliveInterval=20 -o StrictHostKeyChecking=no -gNf -p 2000 localhost

0 comments on commit d78e15d

Please sign in to comment.