Compare commits

..

No commits in common. "d42fccd8362a9d9c16c0bd161617023da9454a11" and "9d6db4bb40c8e92ecc7451e5895849fcbf6d74c8" have entirely different histories.

4 changed files with 3 additions and 10 deletions

View File

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

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

View File

@ -10,7 +10,6 @@ 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,8 +1,6 @@
#!/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
/usr/sbin/sshd
/etc/init.d/sshd start
bash