mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-15 10:26:44 +00:00
update base image to minimize image size
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
#! /bin/bash
|
||||
|
||||
/etc/init.d/ssh start
|
||||
# from https://github.com/danielguerra69/alpine-sshd
|
||||
if [ ! -f "/etc/ssh/ssh_host_rsa_key" ]; then
|
||||
# generate fresh rsa key
|
||||
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
|
||||
fi
|
||||
if [ ! -f "/etc/ssh/ssh_host_dsa_key" ]; then
|
||||
# generate fresh dsa key
|
||||
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
|
||||
fi
|
||||
|
||||
|
||||
/etc/init.d/sshd start
|
||||
ssh -t -t -D 0.0.0.0:7001 -o StrictHostKeyChecking=no localhost
|
||||
|
||||
Reference in New Issue
Block a user