diff --git a/README.md b/README.md index 47689b5..8701f64 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,19 @@ docker run \ foo:123:1001 ``` +#### Logging in + +The SFTP server runs in the container on port 22, and in this example, you are forwarding the container's port 22 to the host's port 2222. + +To log into the STFP server, run + +``` +sftp -P 2222 foo@docker.host.tld +``` + +with docker.host.tld being the address (IP or domain name) of the machine running the Docker daemon. + + ### Multiple users and volumes ```