Created
May 11, 2021 06:40
-
-
Save noize-e/5706f69ab5cf28e2531d9fe729537163 to your computer and use it in GitHub Desktop.
Add new user into AWS Transfer Family Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 -f ~testuser/sftp_key -N '' | |
chown testuser ~testuser/sftp_key* | |
aws transfer import-ssh-public-key --server-id ${SftpServer.ServerId} --ssh-public-key-body "$(cat ~testuser/sftp_key.pub)" --user-name sftpuser --region ${AWS::Region} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment