View previous topic :: View next topic |
Author |
Message |
ifrflyr n00b
Joined: 06 Apr 2005 Posts: 44
|
Posted: Tue Apr 26, 2005 3:46 pm Post subject: Samba mount via SSH problem |
|
|
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 |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Tue Apr 26, 2005 6:13 pm Post subject: |
|
|
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 |
|
|
ifrflyr n00b
Joined: 06 Apr 2005 Posts: 44
|
Posted: Thu Apr 28, 2005 2:04 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|