[CommandLine] – How to copy a local file to a remote service? How to do a `scp` with a public key? camilamacedo86April 20, 2017CommandLine Post navigation PreviousNext scp -r -i mykey.pem <file_path> <server_user>@<server_ip>:<server_path_file> Share this:TwitterEmailPrintLinkedInRedditTumblrPinterestPocketFacebookLike this:Like Loading... Related