Send/Copy local file to Remote Machine

PHOTO EMBED

Wed Feb 09 2022 13:38:38 GMT+0000 (Coordinated Universal Time)

Saved by @irfan309 #linux #ssh

#Send/Copy local file to Remote Machine
usage: scp -i <pemfile>  <filename> user-name@domain-or-ip:<path-to-copy>
scp -i .\keys.pem .\<filename> ubuntu@xx.xx.xx.xx:~/  


# copy file from remote machine to local machine (using GIT Bash)
#$scp -i <"pemfile"> user@xx.xx.xx.xx:/<path-of-file-to-copy> <directory-to-paste-file>
#ex:
$ scp -i  "Light.pem"  bitnami@XX.XX.XX.XX:/home/bitnami/AOC_PROJ_UPDATED_08_06_2022/AOC_PROJ_UPD_08_06_22.tar.gz  . 
content_copyCOPY

it will copy the local file from local machine to remote machine