Compare commits
10 Commits
9d6db4bb40
...
d42fccd836
Author | SHA1 | Date | |
---|---|---|---|
d42fccd836 | |||
4df9913fce | |||
d775ea5fe4 | |||
bcf3839773 | |||
017a25c3e5 | |||
aba51e76b8 | |||
758cedfc21 | |||
af711687cd | |||
c7500beee9 | |||
c531b82e24 |
|
@ -1,9 +1,11 @@
|
||||||
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 \
|
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
|
&& 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 \
|
||||||
|
|
2
nasp-jumpserver/ssh_config
Normal file
2
nasp-jumpserver/ssh_config
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Host *
|
||||||
|
ForwardAgent yes
|
|
@ -10,6 +10,7 @@ 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,6 +1,8 @@
|
||||||
#!/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
|
||||||
/etc/init.d/sshd start
|
/usr/sbin/sshd
|
||||||
bash
|
bash
|
||||||
|
|
Loading…
Reference in New Issue
Block a user