Skip to content

Instantly share code, notes, and snippets.

@noize-e
Created May 11, 2021 06:40
Show Gist options
  • Save noize-e/5706f69ab5cf28e2531d9fe729537163 to your computer and use it in GitHub Desktop.
Save noize-e/5706f69ab5cf28e2531d9fe729537163 to your computer and use it in GitHub Desktop.
Add new user into AWS Transfer Family Server
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