Compare commits

..

10 Commits

4 changed files with 10 additions and 3 deletions

View File

@ -1,9 +1,11 @@
FROM docker.io/alpine
RUN apk add --no-cache openssh git sudo tmux vim bash zsh curl wget coreutils util-linux tzdata \
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 \
&& ./registry/scripts/jumpserver_deploy.sh \

View File

@ -0,0 +1,2 @@
Host *
ForwardAgent yes

View File

@ -10,6 +10,7 @@ PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
PasswordAuthentication no
AllowAgentForwarding yes
PubkeyAcceptedAlgorithms=+ssh-rsa
# override default of no subsystems
Subsystem sftp internal-sftp

View File

@ -1,6 +1,8 @@
#!/bin/bash
set -e
echo "nameserver 192.168.16.118" > /etc/resolv.conf
test -f /etc/ssh/ssh_host_rsa_key || ssh-keygen -A
crond
/etc/init.d/sshd start
bash
/usr/sbin/sshd
bash