AWS – Upload War with SFTP

matto_000@backroom ~/projects/fireanote
$ sftp -o HostKeyAlgorithms=ssh-rsa -i ./….pem ec2-user@….compute.amazonaws.com
Connected to ….compute.amazonaws.com.
sftp> pwd
Remote working directory: /home/ec2-user
sftp> mkdir deploy

etc…

Then it’s old school ftp.

sftp> put ./fireanote-api/target/fireanote-api.war
Uploading ./fireanote-api/target/fireanote-api.war to /home/ec2-user/deploy/fireanote-api.war