Solved

linux/winxp/dlink/share files

Posted on 2004-09-18
11
796 Views
Last Modified: 2010-03-18
hi,

this site has been very helpful.

i have now a working router that shares my cable internet connection to a linux mandrake 10 computer and a windows xp laptop. I would like to be able to share files between the two.

what would be the first step to accomplishing this?

i've tried to plug in ip's into the address bar's of browsers and no dice.

i've tried to ftp over to my linux computer but  i get a username and password error tried all combinations that i know of

thanks in adv,

_mike_h
0
Comment
Question by:solodiver
  • 9
  • 2
11 Comments
 
LVL 10

Expert Comment

by:Luxana
ID: 12090787
mike you can share some files just copiing them usinf putty.exe that is the simples way or you cand rau samba servise which will alow you share linux resources for windows. but putty.exe is easy.
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12090790
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

sorry putty.exe is secure schell this allows you configure your system from windows for copy filese download pscp.exe

0
 
LVL 10

Expert Comment

by:Luxana
ID: 12090816
copy file txt.txt from windows. Save file pscp.exe to c:\ or whre is that file which you want copy

pscp txt.txt root@192.168.2.200:/root    

you schould by ask for yes answer:))
hre you copied file to yur root directory.

copy file from linux.txt from your linux box

pscp root@192.168.2.200:/root/linux.txt c:\

here you copied file from linux root directory to c:\ on your windows

all this commands you will do form command promt from your windows make sure that pscp.exe is in your path otherwise command wil be not found.

also you can copy whole direcotries and you can use globing such us * to match everything.

 

0
 

Author Comment

by:solodiver
ID: 12090826
ok, got access to my linux computer from windows.

how do i copy a file from linux to winxp and how do i specify where i want to copy it to?

what do i type in putty.exe in order to take example_file.gif  to my winxp computer?

i know in linux you type

cp example_file.gif  /directory

and the file is copied

thx,

_mike
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12090830
http://www.scs.carleton.ca/help/apex.shtml#SCP-INSTRUCTIONS

or use graphycal pscp if you like:)))
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 10

Expert Comment

by:Luxana
ID: 12090845
see above I made mistake with putty.exe you are just administrating your linux box from everive on your network or if you have server on internet from everywhere from tho world(thats why is goot no rely on command promt not on GUI)

see my small manual regarding pscp.exe above for copy files between windows and linux
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12090868
here is syntax:

PuTTY Secure Copy client
Release 0.55
Usage: pscp [options] [user@]host:source target
       pscp [options] source [source...] [user@]host:target
       pscp [options] -ls [user@]host:filespec
Options:
  -p        preserve file attributes
  -q        quiet, don't show statistics
  -r        copy directories recursively
  -v        show verbose messages
  -load sessname  Load settings from saved session
  -P port   connect to specified port
  -l user   connect with specified username
  -pw passw login with specified password
  -1 -2     force use of particular SSH protocol version
  -C        enable compression
  -i key    private key file for authentication
  -batch    disable all interactive prompts
  -unsafe   allow server-side wildcards (DANGEROUS)
  -V        print version information
  -sftp     force use of SFTP protocol
  -scp      force use of SCP protocol

so for copy copy whole directories use -r option

lubos
0
 

Author Comment

by:solodiver
ID: 12090881
plz give an example of what i would type exactly?

like cp example_filename.gif /whatevr comes next

i would like to , for example, take a file from one directory on linux and put it on c:\

what would i type exactly?
you see my problem, windows has one set of commands and linux another

if i were to do it in windows i would just type :

copy file.txt c:/windows

or whatever but now we are using two different sets of commands

so i can't mix them up, right? i can't just type cp file.txt c:\windows ?
thanks
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12090901
ok

now instead copy you ar using pscp command :
 syntax is simple command what and where
command:
pscp
what:
txt.txt
where:
root@192.168.2.200:/root/           ->now it is root directory but you can modify it.
so whole command is:
pscp txt.txt root@192.168.2.200:/root/
here you copy file from windows to linux
oposite now:
syntax is same  command what where
command:
pscp
what:
root@192.168.2.200:/root/linux.txt
where:
c:\
so whole command is:
pspc root@192.168.2.200:/root/linux.txt c:\
here you copy file from linux /root to c:\ on windows

this is just exmaple you can change what and where depends of your needs.

0
 
LVL 10

Expert Comment

by:Luxana
ID: 12090925
in case I need to say that now do not use putty.exe it has nothing to do with things what we are doing now.

0
 
LVL 10

Accepted Solution

by:
Luxana earned 500 total points
ID: 12090963
also have a look here:

http://winscp.sourceforge.net/eng/download.php

I must go now....

Lubos
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now