[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: Share on X (Opens in new window) X Email a link to a friend (Opens in new window) Email Print (Opens in new window) Print Share on LinkedIn (Opens in new window) LinkedIn Share on Reddit (Opens in new window) Reddit Share on Tumblr (Opens in new window) Tumblr Share on Pinterest (Opens in new window) Pinterest Share on Facebook (Opens in new window) Facebook Like Loading... Related