Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu 10.04 running through VMPlayer. And I have another machine (Asus RT-N16 router). I am able to connect to the router with telnet and see its file system. How can I copy the file from the local machine (file is /home/user/helloworld-c) to the router (folder */tmp/mnt/discb_1*)?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

Is there possibility to connect via SSH? Maybe you should consider "scp" utitlity. It's very simple, look to the manual page:

man scp

The very basic usage:

scp remote_user@remote_host:/path/to/remote/file /path/to/local/file

and vice versa:

scp /path/to/local/file remote_user@remote_host:/path/to/remote/file
share|improve this answer
Thanks, it works! How can I do the same with the whole folder? –  LA_ Sep 4 '11 at 8:47
Use "-r" option: scp -r user@host:/path/file /path/local. Please, mark the answer as accepted if it works. –  Pavel S. Sep 4 '11 at 9:01
Just look to manual page for scp (in terminal, type "man scp"). There is a lot of more options. –  Pavel S. Sep 4 '11 at 9:02
Thank you. It was so tricky. –  shgnInc Oct 16 '13 at 15:01

To copy a non empty directory from the remote computer to your computer:

scp -r remoteusername@ /home/ourusername/Desktop

To copy a file just exclude the -r option:

scp remoteusername@ /home/ourusername/Desktop

To copy from your computer to the remote computer, just switch the location and destination in the previous example. For more info do man scp.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.