Use secure copy command scp
 
Syntax
scp <source file> user@host:<target dir/filename>
 
For example
scp index.html john@192.168.1.1:/var/www/sites/site1/index.html
 
Make sure you have the write permission to the target directory (in this case site1)
 
Hope this helps.

Visitor's picture
answer by Visitor
2 years 27 weeks ago
  • are the index.html a folder by you ?
    it's easy to copy files, but it not works for directories i think.
     

    - Visitor 1 year 49 weeks ago
  • Ubuntu 11.04 released!

    Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04

    Read ubuntu 11.10 reviews and share yours now!!

    View in your own language!

    Stay Connected

    Ubun2.com on Facebook Ubun2.com on Twitter RSS Feeds