Jump to content

SSH and mounting


Andrewski
 Share

Recommended Posts

Is it possible to "mount a network drive" in Linux like one can in Windows? If so, is that the Linux name for it? I have some space on a box to which I can ssh and I'd like to make it so I don't have to login with scp everytime I want to transfer things.

Link to comment
Share on other sites

The easiest way is NFS mounts....

You export from the server and mount from the client.

 

However nfs isn't considered secure ...

You can use FISH ... which is a share over ssh.....

 

or if you need to share with windows machines you can use SAMBA

 

I'd recommend a bit of working out what you wanna do, is speed more important than security etc.

Link to comment
Share on other sites

it certainly is, you just put a line in your fstab like you would to mount anything else, or you can use smbmount.

 

i think the line you use is something like:

 

//serveraddr /mount/point smbfs some,options,here some,numbers,here

 

The best bet would be to do it using the mandrake control centre, there is a samba mount points utility somewhere, i just can't remember what subsection its in, good luck!

Link to comment
Share on other sites

gowator,

Speed is a larger priority than security in this case. Question is, do I need to have the owner of the box do anything? They want to keep the box as a whole secure, so they wouldn't want to run anything that would compromise the whole box. I'm just saying I don't care about what's in my shared folder. :)

 

fissy,

I won't need samba, as it's a linux box. So what should I be looking up (for I think I'll just need to RTFM)? 'fstab mount network' or something?

Link to comment
Share on other sites

no, except you might not have the nfs server installed on the server.

 

in your server

/etc/exports

/dir/to/export <clients>,<options>

 

Assuming you have a directory called /exports on the server and the client has /mnt/shared

 

<clients can be by ip/domain etc. for example if ytour internal network is 192.168.1.0 with a netmask 255.255.255.0>

 

/exports 192.168.1.0/255.255.255.0, rw

 

then exportfs -ra

this rereads the exports and reexports them

 

on the client

mount 192.16.122.1:/exports /mnt/shared

 

:D

 

To mount automatically at boot and the entry to your /etc/fstab

copy a previous entry, type =nfs

instead of /dev/hda1 etc use 192.16.122.1:/exports

 

thats it!!!

 

except for file permissions and stuff.

If your servername is resolvable from the clients you can use servername instead of the IP.

Directories inherit permissions, so if you create it as root only root will get write priv's even though you set it rw

Easiest way is to make a user group and put users in that group and give the export directory group ownership

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...