Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Docker image which provides an SFTP access mounting a specified S3 bucket.

NotificationsYou must be signed in to change notification settings

hesidoryn/sftp-to-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Docker image which provides an SFTP access to a specified S3 bucket.

Usage

Pull the image from docker hub repository

docker pull hesidoryn/sftp-to-s3

Run the container with

    docker run \    -e SFTP_USER=user \    -e SFTP_PASSWORD=pass \    -e AWS_ACCESS_KEY_ID=access_key \    -e AWS_SECRET_ACCESS_KEY=secret_key \    -e S3_BUCKET=bucket \    -e S3_KEY=/key \    --privileged \-p 222:22 \-d \    hesidoryn/sftp-to-s3

You have to specify the AWS credentials viaAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY.You have also to specify the bucket (and the key) to mount viaS3_BUCKET andS3_KEY (the key should start with a slash/).

Now you can try to login viasftp using the username specified inSFTP_USER and the password specified inSFTP_PASSWORD.

$ sftp -P 222 user@localhostuser@localhost's password:Connected to localhost.

Optional server-side encryption using KMS

You can specify optional environment variableKMS_KEY_ID for server-side encrtption.

 docker run \    -e SFTP_USER=user \    -e SFTP_PASSWORD=pass \    -e AWS_ACCESS_KEY_ID=access_key \    -e AWS_SECRET_ACCESS_KEY=secret_key \    -e S3_BUCKET=bucket \    -e S3_KEY=/key \-e KMS_KEY_ID=kms_key \    --privileged \-p 222:22 \-d \    hesidoryn/sftp-to-s3

Note that KMS Key should be created in bucket region.

About

Docker image which provides an SFTP access mounting a specified S3 bucket.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell100.0%

[8]ページ先頭

©2009-2025 Movatter.jp