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.

Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04
Read ubuntu 11.10 reviews and share yours now!!
are the index.html a folder by you ?
- Visitor 1 year 49 weeks agoit's easy to copy files, but it not works for directories i think.