Many times you gonna need to move a file from your local computer to a remote server or download a file from a remote instance just using the terminal.
You can achieve that by using the scp command:
scp -r -i file.pem ./file.csv ubuntu@IP:downloadsNotice that your destination folder is specified the IP Address. In this case, the downlod folder in the remote server. If you need to copy/download a file from the remote server to your local machine, just have to switch
scp -r -i file.pem ubuntu@IP:downloads/file.csv .The dot (.) being your current directory in linux.
Comments
Post a Comment