Transfering Files Between Instances

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
R-H's picture

Can anyone please share the unix command to transfer files between instances?

I'm guessing that it would be scp but I can't figure it out.

I would like to transfer my themes directory from one instance to another.

Thank you

Comments

scp is the command

Greg Coit's picture

Hello,

To copy a file from one instance to another, either:

add your ~/.ssh/id_rsa.pub file on computer and account you want to send from to the ~/.ssh/authorized_keys file on the computer and account that you want to send to

or

if you have your ec2-keys on the sending server, use: ssh -i /path/to/ssh-keys file user@remote_server_ip:~/

Hope this helps,

Greg

--
Greg Coit
Systems Administrator
http://www.chapterthree.com