scp -i {{KEY_FILE}} {{FILE_TO_COPY}} {{USER}}@{{IP}}:{{UPLOAD_LOCATION}}
- KEY_FILE: *.pem file for authentication
- FILE_TO_COPY: File name which needs to be copied
- USER: Username for login to the remote machine
- IP: IP of the machine
- UPLOAD_LOCATION: Destination path on the server where file needs to be copied to.
scp -i key.pem commands.zip [email protected]:/home/arshad