scp -i {{KEY_FILE}} {{USER}}@{{IP}}:{{FILE_PATH}} {{LOCAL_PATH}}
- KEY_FILE: *.pem file for authentication
- USER: Username for login to the remote machine
- IP: IP of the machine
- FILE_PATH: Path of the file on server
- LOCAL_PATH: Path to store file in local machine
scp -i key.pem [email protected]:/home/arshad/commands.zip /home/arshad/oss/commands.zip