Edit:
You'll have trouble copying files via telnet my friend. Why do you insist on using a terminal?
Meaning, you’re running Windows, so presumably have access to a graphical environment. So would using windows file sharing / a web browser / ftp client / ssh client / etc be ruled out because they're graphical? And if so, why?
Do you have root access on the Ubuntu machine? I would suggest you install an ssh server:
sudo apt-get install openssh-server
Then grab a windows SSH/SCP client, eg. WinSCP, and use it to log in to the server and copy your files.
Or if you really really want to do it via the terminal for some reason, grab Cygwin and install opens, then use the 'scp' command mentioned below.
You need to be a little more specific about your situation.
- what OS is the client running?
- what OS is the server running?
- what services is the server running, if you know (FTP, HTTP, NFS, SMB, SSH, etc)
For example, if you have SSH access to the server, something like this would work:
scp user@server.mydomain.com:/remote/path/file.txt /local/path/
If you have HTTP access to the file (http://server.mydomain.com/path/file.txt
) then as the poster above suggested, wget:
wget http://server.mydomain.com/path/file.txt
The answer depends heavily on your situation.
1The correct syntax is
user@host:path
, notuser@host/~/path
. If I understood it correctly, your example should bescp qa@ubuntu:www/html/js qa@desktop2:home/qa/html
(although it's unclear whether @klox wanted~/home/qa/html
or~/html
). – user1686 – 2010-07-01T18:03:23.697Oops, sorry, my bad. Thanks for the correction. – Aatch – 2010-07-13T22:29:28.047