Tutorial: How to upload files to your instance

posted Oct 14, 2015, 11:16 PM by SRGICS UPLB   [ updated Mar 13, 2018, 6:36 PM by Joseph Anthony Hermocilla ]
If you need to upload files to your instance from the command line, the syntax is shown below.

$scp -oUserKnownHostsFile=/dev/null -i <Key File> <Filename> ubuntu@<Floating IP>:.

For example:
$scp -oUserKnownHostsFile=/dev/null -i user.pem hello.txt ubuntu@10.0.3.243:.

If you enabled password authentication in SSH and created a user.

$scp -oUserKnownHostsFile=/dev/null myfile.zip myusername@10.0.3.243:.