https://github.com/sango-tech/sftp-sshd-docker
This package is only used for building an SFTP locally using docker. This is supporting 2 main login methods are by using username/password and a private key.
https://github.com/sango-tech/sftp-sshd-docker
sftp-server
Last synced: about 1 year ago
JSON representation
This package is only used for building an SFTP locally using docker. This is supporting 2 main login methods are by using username/password and a private key.
- Host: GitHub
- URL: https://github.com/sango-tech/sftp-sshd-docker
- Owner: sango-tech
- Created: 2021-11-26T04:37:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-18T04:58:41.000Z (over 4 years ago)
- Last Synced: 2025-02-06T05:30:04.891Z (over 1 year ago)
- Topics: sftp-server
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introducion
This package is only used for building an SFTP locally using docker. This is supporting 2 main login methods
- By using username/password
- By using a private key
## Step 1. Easy start via docker-compose
```
docker-compose up
```
## Step 2. Make private key
```
$ ssh-keygen -R localhost && ssh-copy-id -i ssh/id_rsa.pub sango@localhost
> input password `sango` if have?
```
# Login by using user/passw
```
host: sftp://localhost
username: sango
password: sango
```
# Login by using the private key
```
username: sango
private file key: ./ssh/id_rsa
```
# If got REMOTE HOST IDENTIFICATION HAS CHANGED (OPTIONAL and just in case)
```
ssh-keygen -R localhost
```
# License
The code is available under the MIT License.