Edit files on remote server with geany

I’m using debian on my pc. It’s very easy to access remote servers file systems via ssh or ftp. My problem always was that it is not possible to edit them with geany, my favorite editor. So I’ve done some research. The first thing I found was fuse, but as I understood fuse is just a library used by other programs. Then I recognized SSHFS. SSHFS is a program that allows you to mount your remote machine like a hard drive into your file system.

Get geany working on your remote server

First I installed the package and added my standard user to the fuse group.

~$ sudo aptitude install sshfs
~$ sudo useradd -G fuse username
~$ sudo reboot

If you don’t reboot, the group changes will not take effect on fuse. Next Step is to create the mount point an finally mount.

~$ mkdir local-mount-point
~$ sshfs user@target-host:path-to-mount local-mount-point

To unmount the filesystem again just type

~$ fusermount -u mountpoint

Once the system is mounted its possible to handle every file from the remote server like the files on your local machine.

This entry was posted in debian and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*