From d775ea5fe43586569aaa9e1f4ee7f89492faa93e Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Thu, 4 May 2023 15:28:52 +0800 Subject: [PATCH] bug fix (Thu May 4 15:28:52 CST 2023) --- nasp-jumpserver/Dockerfile | 3 ++- nasp-jumpserver/ssh_config | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 nasp-jumpserver/ssh_config diff --git a/nasp-jumpserver/Dockerfile b/nasp-jumpserver/Dockerfile index 79715b9..5ac04cb 100644 --- a/nasp-jumpserver/Dockerfile +++ b/nasp-jumpserver/Dockerfile @@ -1,9 +1,10 @@ FROM docker.io/alpine -RUN apk add --no-cache openssh git sudo tmux vim bash zsh curl wget coreutils util-linux tzdata shadow \ +RUN apk add --no-cache openssh git sudo tmux vim bash zsh curl wget coreutils util-linux tzdata shadow iputils \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone COPY sshd_config /etc/ssh/sshd_config +COPY ssh_config /etc/ssh/ssh_config COPY startup.sh /etc/startup.sh RUN cd /opt && git clone https://git.nasp.ob.ac.cn/NASP/registry \ diff --git a/nasp-jumpserver/ssh_config b/nasp-jumpserver/ssh_config new file mode 100644 index 0000000..a97cde5 --- /dev/null +++ b/nasp-jumpserver/ssh_config @@ -0,0 +1,2 @@ +Host * + ForwardAgent yes \ No newline at end of file