Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casperklein/docker-sftp
https://github.com/casperklein/docker-sftp
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/casperklein/docker-sftp
- Owner: casperklein
- Created: 2019-08-17T22:32:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T21:52:36.000Z (2 months ago)
- Last Synced: 2024-08-27T00:41:02.190Z (2 months ago)
- Language: Shell
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-sftp
![Version][version-shield]
![Supports amd64 architecture][amd64-shield]
![Supports aarch64 architecture][aarch64-shield]
![Supports armhf architecture][armhf-shield]
![Supports armv7 architecture][armv7-shield]
![Docker image size][image-size-shield]## Share files in current directory via SFTP
PASSWORD='!insecure!'
PORT=222docker run --rm -it -v $PWD:/mnt -p $PORT:22 -e password="$PASSWORD" casperklein/sftp
### Alias
alias sftphere='docker run --rm -it -v $PWD:/mnt -p 222:22 -e password="!insecure!" casperklein/sftp'
## Connect to SFTP service
HOST=localhost
PORT=222sftp -P $PORT root@"$HOST"
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-blue.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-blue.svg
[armhf-shield]: https://img.shields.io/badge/armhf-yes-blue.svg
[armv7-shield]: https://img.shields.io/badge/armv7-yes-blue.svg
[version-shield]: https://img.shields.io/github/v/release/casperklein/docker-sftp
[image-size-shield]: https://img.shields.io/docker/image-size/casperklein/sftp/latest