LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   WinXp: Mounting a Z: drive from a distant NFS&/OrSamba Linux server via using SSH (https://www.linuxquestions.org/questions/linux-server-73/winxp-mounting-a-z-drive-from-a-distant-nfs-and-orsamba-linux-server-via-using-ssh-609177/)

frenchn00b 12-26-2007 05:17 AM

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 !!

jschiwal 12-26-2007 05:30 AM

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.

frenchn00b 12-26-2007 08:20 AM

Quote:

Originally Posted by jschiwal (Post 3001752)
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 ?

jschiwal 12-26-2007 12:15 PM

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.

KenJackson 01-01-2008 08:05 AM

Quote:

Originally Posted by jschiwal (Post 3002039)
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.


All times are GMT -5. The time now is 01:54 AM.