SFTP with AWS Keys Jul 24, 2019 • Ulysses How to use SFTP with AWS Keys. <pre lang="bash">sftp -i "yourkey" ec2-user@your-server To copy files to server. File will copied to user’s home directory. <pre lang="bash"> sftp> put file.txt .