From 15f0269625c36abae9481deb644f277e37a0e07e Mon Sep 17 00:00:00 2001 From: "xinze.liu" Date: Wed, 15 Jan 2025 18:14:23 +0800 Subject: [PATCH] fix: change generate encrypted passwords cmd. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f923b8..3cd25cf 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,9 @@ docker run \ ``` Tip: you can use this Python code to generate encrypted passwords: -`docker run --rm python:alpine python -c "import crypt; print(crypt.crypt('YOUR_PASSWORD'))"` +`docker run --rm python:3.10 python -c "import crypt; print(crypt.crypt('YOUR_PASSWORD'))"` +or use [makepassd](https://manpages.debian.org/bookworm/makepasswd/makepasswd.1.en.html) +`docker run --rm --entrypoint=/usr/bin/mkpasswd atmoz/sftp:alpine "YOUR_PASSWORD"` ## Logging in with SSH keys