Vi sucks. As much as I love using the command line, I hate writing code there. I used to like it before I started using an IDE but now Im spoiled and I dont want to use anything else. I have to do most of my work via SSH so I found a way to mount the remote server and edit using an IDE.
Install SSHFS
sudo apt-get install sshfs
Add fuse to /etc/modules
sudo nano /etc/modules
Add yourself to the ‘fuse’ group
sudo adduser username fuse
Create a mountpoint and give yourself ownership
sudo mkdir /media/mountname
sudo chown username /media/mountname
Mount the filesystem
sshfs remoteserver:/remotefolder /media/mountname
Unmount the filesystem
fusermount -u /media/mountname
Since I have so many servers to log into I wrote a small bash script to make it easier to mount and umount
#!/bin/bash
sshfs $1.server.com:/var/www /media/$1
#!/bin/bash
fusermount -u /media/$1
Directions from Ubuntu Forums.
jen@jenpeters.com
@cxjtc
http://facebook.com/cxjtc
http://last.fm/user/noegoweb