Author Topic: accessing files on a windows server from a linux server  (Read 1291 times)

accessing files on a windows server from a linux server
« on: 20 May, 2008, 03:40:09 pm »
I'm too embarrassed to ask this question at work.

I use putty to log onto a linux server. Fine. I need to copy some files from a windows server onto the linux server. does anyone know how I do that?
<i>Marmite slave</i>

tiermat

  • According to Jane, I'm a Unisex SpaceAdmin
Re: accessing files on a windows server from a linux server
« Reply #1 on: 20 May, 2008, 03:41:58 pm »
Download winscp, then use the account that you putty into the box with to use winscp to copy the files across.

Easy as... :)
I feel like Captain Kirk, on a brand new planet every day, a little like King Kong on top of the Empire State

Re: accessing files on a windows server from a linux server
« Reply #2 on: 20 May, 2008, 03:42:36 pm »
scp (or PSCP.EXE as you get with PuTTY):-

(This does assume you've installed the more complete PuTTY package rather than just the PuTTY executable.)

pscp files to copy username@machinename:/tmp/

C:\data>"C:\Program Files\putty\pscp.exe" a.txt w.txt alexg@wibble.example.com:/tmp
Using keyboard-interactive authentication.
Password:
a.txt                     |          1 kB |   1.5 kB/s | ETA: 00:00:00 | 100%
w.txt                     |          1 kB |   1.5 kB/s | ETA: 00:00:00 | 100%

And over on the other machine I now have:-

wibble$ ls -l /tmp/?.txt
-rw-r--r--   1 alexg    dev         1682 May 20 15:44 /tmp/a.txt
-rw-r--r--   1 alexg    dev         1509 May 20 15:44 /tmp/w.txt
"Yes please" said Squirrel "biscuits are our favourite things."

Re: accessing files on a windows server from a linux server
« Reply #3 on: 20 May, 2008, 04:06:15 pm »
winscp done the trick, thanks.

Now I just have to use make to build the linux distro, then connect to the shell to use a windows debugger to load linux onto the target hardware. Joy.
<i>Marmite slave</i>