| « PHP 5.3.0 is out ! | Mysql dump - Extract databases as files from a full dump » |
Link: http://fuse.sourceforge.net/sshfs.html
I mainly use Eclipse (PDT) for development. For PHP I also use Zend Studio for Eclipse which can, by default, create a project over SSH. But for the sake of having at my disposition Eclipse (PDT) and Zend Studio for Eclipse... both accessing project files in the same way I mount a folder over SSH.
For this you need fuse-sshfs:
[radical@acasa ~]$ yum info fuse-sshfs
Installed Packages
Name : fuse-sshfs
Arch : x86_64
Version : 2.2
Release : 1.fc10
Size : 103 k
Repo : installed
Summary : FUSE-Filesystem to access remote filesystems via SSH
URL : http://fuse.sourceforge.net/sshfs.html
License : GPLv2
Description: This is a FUSE-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 filesystem is as easy as logging into the server with ssh.
Many times this saved me a lot of time... all applications that use the directory have no clue where the files are...
For the sake of simplicity I use ssh keys so for me it connects after I insert my pass-phrase... (if it's the first access to the private key... ...more on that in a future post).
[radical@acasa ~]$ sshfs root@server.example.com:/ /mnt/server -o compression=yes,sshfs_sync,no_readahead,idmap=user,uid=`id -u`,gid=`id -g`
Follow up:
This will mount the server root "/" into local machine "/mnt/server" folder (please create it first).
Now what is it with `id -u` and `id -g` ?
These are going to be replaced by bash with the current id of the user/group...
[radical@acasa caffeine]$ id -u
500
[radical@acasa caffeine]$ id -g
500
The actual command would be:
[radical@acasa ~]$ sshfs root@server.example.com:/ /mnt/server -o compression=yes,sshfs_sync,no_readahead,idmap=user,uid=500,gid=500
Thus giving the current user all rights on the mounted folder.
Happy "mount"s...
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
sshfs -o uid=...,gid=...,idmap=user,nonempty,workaround=rename ...