Compare commits
No commits in common. "d42fccd8362a9d9c16c0bd161617023da9454a11" and "9d6db4bb40c8e92ecc7451e5895849fcbf6d74c8" have entirely different histories.
d42fccd836
...
9d6db4bb40
|
@ -1,11 +1,9 @@
|
||||||
FROM docker.io/alpine
|
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
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
COPY sshd_config /etc/ssh/sshd_config
|
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 \
|
RUN cd /opt && git clone https://git.nasp.ob.ac.cn/NASP/registry \
|
||||||
&& ./registry/scripts/jumpserver_deploy.sh \
|
&& ./registry/scripts/jumpserver_deploy.sh \
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
Host *
|
|
||||||
ForwardAgent yes
|
|
|
@ -10,7 +10,6 @@ PubkeyAuthentication yes
|
||||||
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
|
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
|
||||||
PasswordAuthentication no
|
PasswordAuthentication no
|
||||||
AllowAgentForwarding yes
|
AllowAgentForwarding yes
|
||||||
PubkeyAcceptedAlgorithms=+ssh-rsa
|
|
||||||
|
|
||||||
# override default of no subsystems
|
# override default of no subsystems
|
||||||
Subsystem sftp internal-sftp
|
Subsystem sftp internal-sftp
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "nameserver 192.168.16.118" > /etc/resolv.conf
|
|
||||||
test -f /etc/ssh/ssh_host_rsa_key || ssh-keygen -A
|
|
||||||
crond
|
crond
|
||||||
/usr/sbin/sshd
|
/etc/init.d/sshd start
|
||||||
bash
|
bash
|
Loading…
Reference in New Issue
Block a user