mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-22 13:14:42 -05:00
Extract makepasswd to separate docker image
This commit is contained in:
parent
86f20750eb
commit
382d736336
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ MAINTAINER Adrian Dvergsdal [atmoz.net]
|
|||
# - OpenSSH needs /var/run/sshd to run
|
||||
# - Remove generic host keys, entrypoint generates unique keys
|
||||
RUN apt-get update && \
|
||||
apt-get -y install openssh-server makepasswd && \
|
||||
apt-get -y install openssh-server && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
mkdir -p /var/run/sshd && \
|
||||
rm -f /etc/ssh/ssh_host_*key*
|
||||
|
|
|
@ -77,8 +77,8 @@ docker run \
|
|||
'foo:$1$0G2g0GSt$ewU0t6GXG15.0hWoOX8X9.:e:1001'
|
||||
```
|
||||
|
||||
Tip: you can use [makepasswd](https://packages.debian.org/jessie/makepasswd) (included in the debian image) to generate encrypted passwords:
|
||||
`echo -n "password" | docker run -i --rm --entrypoint=makepasswd atmoz/sftp:debian --crypt-md5 --clearfrom -`
|
||||
Tip: you can use [atmoz/makepasswd](https://hub.docker.com/r/atmoz/makepasswd/) to generate encrypted passwords:
|
||||
`echo -n "your-password" | docker run -i --rm atmoz/makepasswd --crypt-md5 --clearfrom=-`
|
||||
|
||||
## Using SSH key (without password)
|
||||
|
||||
|
|
Loading…
Reference in a new issue