LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-26-2007, 05:17 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
WinXp: Mounting a Z: drive from a distant NFS&/OrSamba Linux server via using SSH


Machine 1, Internet: LINUX Box with samba / nfs exports, being a hardware firewalling (port 22 open (SSH))

Machine 2, Internet: Windows XP box with putty

How can Machine 2 have a z:\ containing the \home\user of machine 1 which is exported ?

(via SSH)

thanks !!

Last edited by frenchn00b; 12-26-2007 at 05:18 AM.
 
Old 12-26-2007, 05:30 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you had a linux client you could use sshfs to mount your home directory remotely. You can use scp or sftp to copy files back and forth. The smb protocol normally uses more than one port. You have to configure the remote samba server and your client to use only one port before you can tunnel through ssh, with limited success.

See the Samba 3 Reference & HOWTO for more information. Other than that, you might be able to find a something using Google. But it would be better to set up a VPN connection between the two computers.

Referring to a Z:/ drive doesn't make that much sense because that is just a DOS alias for a smb service on the windows client.

Last edited by jschiwal; 12-26-2007 at 05:32 AM.
 
Old 12-26-2007, 08:20 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by jschiwal View Post
If you had a linux client you could use sshfs to mount your home directory remotely. You can use scp or sftp to copy files back and forth. The smb protocol normally uses more than one port. You have to configure the remote samba server and your client to use only one port before you can tunnel through ssh, with limited success.

See the Samba 3 Reference & HOWTO for more information. Other than that, you might be able to find a something using Google. But it would be better to set up a VPN connection between the two computers.

Referring to a Z:/ drive doesn't make that much sense because that is just a DOS alias for a smb service on the windows client.
I found this: http://www.maths.ed.ac.uk/~manolis/h...nnelsamba.html

is it nice way ?
 
Old 12-26-2007, 12:15 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Using scp or sftp would be a lot easier. You don't have to remove your work computer from the work network.

Transferring files to and from work is not a good idea and usually not permitted. Make sure that what you are doing isn't prohibited. If it is, it could be grounds for termination.

Last edited by jschiwal; 12-26-2007 at 12:17 PM.
 
Old 01-01-2008, 08:05 AM   #5
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by jschiwal View Post
Transferring files to and from work is not a good idea and usually not permitted. Make sure that what you are doing isn't prohibited. If it is, it could be grounds for termination.
Usually not permitted??

He didn't say that this transfer is to be between work and home. But assuming that you guessed right, he didn't say what occupation he has or how big his employer is. Rules vary widely from employer to employer and from occupation to occupation.

I used to setup an encrypted link with OpenVPN so I could access all the machines at home from work and the internal work network from home. BTW, OpenVPN is one possible answer to the question, although it doesn't use SSH.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
free winxp openssh (beside f-secure ssh server & cygwin) to connect winxp from linux imnoob Linux - General 3 12-06-2007 12:26 PM
nfs-mounting via ssh. Possible ? Xeratul Linux - General 2 05-24-2007 06:02 PM
NFS problem - connection refused from distant host Agrouf Linux - Networking 4 10-17-2005 02:24 PM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
help mounting 2nd partition on WinXP drive harnadem Linux - Newbie 2 03-21-2004 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration