Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
noob linux/windows filesharing problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
griblik
n00b
n00b


Joined: 12 Nov 2003
Posts: 36

PostPosted: Thu Apr 15, 2004 4:52 pm    Post subject: noob linux/windows filesharing problems Reply with quote

Hi all,

I'm trying to move files from a win2k box to a gentoo kit, and having absolutely no success. Wondered if some helpful soul could point me in the right direction...

I've got samba set up and working on gentoo - I can move stuff from one linux kit to another with no problems. However, windows networking is doing something weird, and I can't see the share at all from 2k (or even the kit). Hell, I can't even see my WinXP kit from it, or vice versa, so I've given up on the idea of using samba for the time being. MS product support being what it is, I'm not holding out any hopes of working that one out any time soon.
The workgoups are the same on all kits, I'm not using a domain, they can all ping each other by name & IP, and there's no firewall running on the windows boxen.

I thought about using winSCP, but I have no idea where to begin setting that up at the linux end. I've got ssh installed, but get a "Connection refused" message when I try to connect with winscp. Same thing happens after I installed scponly on the gentoo box.

At this point, I'm more than willing to concede my total lack of knowledge in this area and try anything anyone can suggest (well, almost anything ;)

Help?
Back to top
View user's profile Send private message
davidblewett
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 274
Location: Indiana

PostPosted: Thu Apr 15, 2004 4:57 pm    Post subject: Reply with quote

Connection refused usually means that there is nothing listening at the address and port you specified. I would check to make sure the sshd_config on the machine running sshd has the same Listen On and Port options that you are using to connect to. I know it sounds lame, but I've had problems with this before.
_________________
No guilt in life, no fear in death
this is the power of Christ in me
From life’s first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album"
Back to top
View user's profile Send private message
dambacher
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 290
Location: Germany

PostPosted: Thu Apr 15, 2004 5:20 pm    Post subject: smb and xp Reply with quote

Hi griblik

winxp and samba are trobles...

first try to ping from windows to linux using the ip numbers. the computer should see each other. (ping from linux to windows won't work)

second check if both computers are in the same workgroup and you don't use domain controllers. (smb.conf: workgroup=, xp: in computer configuration where you set the computer name you can set the workgroup, too.

try to connect from linux to xp using
Code:
smbclient -L yourxpcomputername -U yourusername -W yourworkgroupname -N

you should get a list of shares

use smbclient like ftp:
Code:
smbclient //yourcomputername/yoursharename -U yourusername -W yourworkgroup


reading samba shares from xp is only possible if you tweak some security options of xp (wiered thing to do, if you want it, I will tell you...)

post smb.conf and /var/log/samba/log.smb errors if this does not work[/code]


Last edited by dambacher on Thu Apr 15, 2004 5:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
griblik
n00b
n00b


Joined: 12 Nov 2003
Posts: 36

PostPosted: Thu Apr 15, 2004 5:20 pm    Post subject: Reply with quote

Might have sounded lame, but I hadn't actually checked.

As it happens, I'm not sure if ssh was listening on the right port (although I'm guessing it defaults to IP:22), but I've explicitly told it where to listen, and I can ssh into it.

Still no success with scp tho. I'm starting to think it's really just windows being crap.

On the plus side, in the last two days I've got samba and ssh working, so at least I'm learning new stuff...
Back to top
View user's profile Send private message
davidblewett
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 274
Location: Indiana

PostPosted: Thu Apr 15, 2004 5:53 pm    Post subject: Reply with quote

I looked at the WinSCP site (http://winscp.sourceforge.net/eng/requirements.php), and it appears it tries to use both SFTP and SCP. If it's trying to use SFTP to connect to your machine, it might be failing if you don't have your sshd setup to use SFTP. I read this on their site:
Quote:
To transfer files scp1 is used (it is called from within scp). If only scp2 is allowed on your server, check "Use scp2 with scp1 compatibility" option on "SCP" tab in login dialog.
It might be trying to use scp1 to connect to your (most probably) SSH2 server.

You might try using a Cygwin environment. This way you could use the native scp app.

Griblik:
Quote:
reading samba shares from xp is only possible if you tweak some security options of xp (wiered thing to do, if you want it, I will tell you...)

I would like to see this, as I'm having problems with my XP box playing nice with the samba server.
_________________
No guilt in life, no fear in death
this is the power of Christ in me
From life’s first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album"
Back to top
View user's profile Send private message
coax
Apprentice
Apprentice


Joined: 08 Sep 2003
Posts: 231
Location: Antwerp - Belgium

PostPosted: Thu Apr 15, 2004 6:20 pm    Post subject: Reply with quote

It's my experience not to thrust windows file sharing. It's much easyer to just emerge proftpd and connect to it from windows box.
_________________
- There is no such thing as having too many computers -
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum