Search
Topics
Krishnendu\'s Blog

  Create an account  · 


Navigation
Main
 _HOME
General
 Feedback
 Recommend Us
Community
 Downloads
 Forums
 Members List
Members
 Account
 Private Messages
Information
 Content
 Encyclopedia
 Resources
 Linux Kernel
 GNU
 Linux Security


Sponsors
_BLOCKPROBLEM2

www.GLUG-Howrah.org :: View topic - Mount a remote file system through ssh
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mount a remote file system through ssh

 
Post new topic   Reply to topic    www.GLUG-Howrah.org Forum Index -> Networking
View previous topic :: View next topic  
Author Message
samba
Pingu
Pingu


Joined: May 01, 2004
Posts: 13
Location: Howrah

PostPosted: Mon Sep 17, 2007 6:45 pm    Post subject: Mount a remote file system through ssh Reply with quote

Hi! All,

This is so called sambada, the new are doesn't know me and the old hate me Wink as I was offline for a long....Ok guies leave this...actually I found an important article and wanna share it with you....

we are here quite familier with ssh and If you want to access a remote file system through ssh you need to install sshfs. sshfs is a filesystem client based on the SSH File Transfer Protocol. Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there’s nothing to do. On the client side mounting the file system is as easy as logging into the server with ssh.


sshfs Features

* Based on FUSE (the best userspace filesystem framework for linux)

* Multithreading: more than one request can be on it’s way to the server

* Allowing large reads (max 64k)

* Caching directory contents

* sshfs runs entirely in user space. A user using sshfs does not need to deal with the root account of the remote machine. In the case of NFS, Samba etc., the admin of the remote machine has to grant access to those who will be using the services.


Install SSHFS in Debian

#apt-get install fuse-utils sshfs

Next, let’s make sure the following condition is met. In the local system, type (as root)


# modprobe fuse


This will load the FUSE kernel module. Besides SSHFS, the FUSE module allows to do lots of other nifty tricks with file systems, such as the BitTorrent file system, the Bluetooth file system, the User-level versioning file system, the CryptoFS, the Compressed read-only file system and many others.

Now you need to make sure you have installed ssh in your debian server using the following command


# apt-get install ssh


Using SSHFS

SSHFS is very simple to use. The following command


$ sshfs user@host: mountpoint


This will mount the home directory of the user@host account into the local directory named mountpoint. That’s as easy as it gets. (Of course, the mountpoint directory must already exist and have the appropriate permissions).

Example

create the mount point

#mkdir /mnt/remote
#chown [user-name]:[group-name] /mnt/remote/

Add yourself to the fuse group

adduser [your-user] fuse

switch to your user and mount the remote filesystem.

sshfs remote-user@remote.server:/remote/directory /mnt/remote/

If you want to mount a directory other than the home directory, you can specify it after the colon. Actually, a generic sshfs command looks like this:

$ sshfs [user@]host:[dir] mountpoint [options]

Unmount Your Directory

If you want to unmount your directory use the following command

fusermount -u mountpoint


Hope this article can add extra flavour on your taste....

Samba
itsaurav@gmail.com

=============
Always Connected
=============

Source :: http://www.debianadmin.com/mount-a-remote-file-system-through-ssh-using-sshfs.html
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    www.GLUG-Howrah.org Forum Index -> Networking All times are GMT + 5.5 Hours
Page 1 of 1

 
Jump to:  
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



Powered by phpBB © 2001, 2005 phpBB Group





plastic card printers  
tablet pcs  wall fountain printer ink
Kartendrucker 
Free Trial for Anonymous Surf Software 
Cheap Term Life Insurance
Books

NorthWestPharmacy.com is a premier and licensed supplier of Canada Drugs Online