Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba mount via SSH problem
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
ifrflyr
n00b
n00b


Joined: 06 Apr 2005
Posts: 44

PostPosted: Tue Apr 26, 2005 3:46 pm    Post subject: Samba mount via SSH problem Reply with quote

Hi, everyone,

I'm trying to mount a samba share via an ssh connection. First I made the ssh connection, which worked.

Code:
ssh -L 139:localhost:139 user@remotehost -N -f


Then I tried the mount:

Code:
sudo mount -t smbfs //localhost/samba/public /home/user/samba -o username=user,password=passwd,gid=users,uid=user


And I get:

Code:
10423: session setup failed: ERRDOS - ERRnoaccess (Access denied.)


Anyone know what I'm doing wrong?

Thanks in advance.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Apr 26, 2005 6:13 pm    Post subject: Reply with quote

Hi! According to this thread you need the ports 137,138 and 139 for samba. Perhaps it'd be easier if you used sftp for secure file interchange. There are nice kio_slave/gnome-vfs plugins for it, and with fuse + sshfs-fuse, you can even mount remote locations via ssh.
Back to top
View user's profile Send private message
ifrflyr
n00b
n00b


Joined: 06 Apr 2005
Posts: 44

PostPosted: Thu Apr 28, 2005 2:04 am    Post subject: Reply with quote

Thanks for that information. I got this going with ssh and smbfs actually, using some help from a Samba IRC. The problem, as you pointed out, was that the samba server on the remote host was already using 139. I did 139:localhost:445 to forward the port on the remote server to 445 instead of 139, and it mounted right away using:

sudo mount -t smbfs //localhost/public /home/user/samba -o username=user,password=password,uid=user,gid=users,port=139


I will definitely check out your suggestions though, as it seems a very cool way to do it.

Thanks again for the reply!
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