LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2009, 08:48 AM   #1
ajcaruana
LQ Newbie
 
Registered: Jun 2009
Location: Malta
Distribution: SuSe, Fedora & Ubuntu
Posts: 4

Rep: Reputation: 0
Question Local Drive Mapping in *nix


I am trying to create a solution to automatically map/mount a local drive to a remote machine when I login on the remote machine. I need something like SSHFS, but switched round. The remote machine is a *nix machine (practically anything except Windows), while the local machine can be anything (including Windows, after I extend/modify the system to meet my needs).

Does anybody have any idea if something already exists ?
 
Old 06-24-2009, 09:11 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
The easiest way is to mount the local machine from the remote one with cifs.
 
Old 06-25-2009, 05:16 AM   #3
ajcaruana
LQ Newbie
 
Registered: Jun 2009
Location: Malta
Distribution: SuSe, Fedora & Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
OK, it seems I have to be more specific here....

I am looking for something like Local Drive Mapping in Microsoft's RDP. I want to connect to a remote machine, and authenticate with the remote machine and mount my local hard disk somewhere on that machine automatically without the need to authenticate with the local machine because since I started from the local machine I am already authenticated. Is it possible to do this in the *nix world ?
 
Old 06-25-2009, 06:23 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
For centralized authentication you can use LDAP, but that doesn't still help the key point: you need to mount the drive in any way. And when windows is in the middle, the way to go is usually cifs.

I guess you could also use nfs, but I have no idea how good or bad nfs on windows is.
 
Old 06-25-2009, 06:51 AM   #5
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
You can use NIS/NYS as well to authenticate on a network.
Anyway, I think I get what you are asking for. You log on (how? SSH?) to a remote machine and that machine automatically mount your local drive. Well there are more than one way to do it.
You can use a script to log on to the remote machine. That script would mount your drive remotely and log you on. You can use port forwarding to forward a locally mounted sshfs, nfs or cifs drive. You can use pam rules to not have to authenticate yourself 2 times. There are several other solutions.

Last edited by Agrouf; 06-25-2009 at 07:11 AM.
 
Old 06-25-2009, 07:24 AM   #6
ajcaruana
LQ Newbie
 
Registered: Jun 2009
Location: Malta
Distribution: SuSe, Fedora & Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
lets make things simpler ... assume that the local machine is NOT windows. That seems to remove some restrictions.

I am not bound to any specific login method/mechanism, but if you know of a solution that restricts me to a particular login method I will not discard it.

Quote:
You can use port forwarding to forward a locally mounted sshfs, nfs or cifs drive (dirty)
I did not really understand this part. Can you kindly explain better please?

Quote:
You can use pam rules to not have to authenticate yourself 2 times
Would this restrict me to having to enter username & password of any machine that I can use as my local machine? I am looking for a solution whereby it is not important what machine my local machine is as long as I can connect to the remote machine.

Quote:
There are several other solutions
is there a list anywhere that I could consult?

Many thanks for your help
 
Old 06-25-2009, 08:32 AM   #7
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Let's say you want to connect to the remote machine with ssh and log in to bash and have your local sshfs mounted there:

the local connection script would be:
Code:
ssh user@remotehost -R 2222:localhost:22 remotescript
and there should be a remotescript called remotescript:
Code:
sshfs user@localhost:/dir /mountpoint -p 2222
bash

Last edited by Agrouf; 06-25-2009 at 08:34 AM.
 
  


Reply

Tags
ldm



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can *nix command dd be used to clone a hard drive to DVDs? vois22 Linux - General 1 10-20-2007 03:31 AM
Problem Mapping local Drive soniquser Linux - Desktop 1 05-04-2007 06:07 AM
Local network mapping carcassonne Linux - Networking 1 07-23-2006 07:51 PM
Mapping Drive ajkannan83 General 0 07-18-2006 06:58 AM
Is there drive cloning software similar to Ghost for *nix? ExoZagNoid Linux - Software 3 06-18-2004 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:50 AM.

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