Not sure how many people already know about this / do this, but here goes.
I have seen many ppl logging onto remote machines via ssh and coding using terminal based editors like vi, emacs, nano,etc. If you love the power of the command line and prefer vi over GUI editors, thats fine. But, what if you thought its not possible to edit these files locally using your favorite GUI editor right on your desktops?.
All you have is an ssh account on the machine, so, how do we do this ?
Enter "sshfs". It lets you mount a remote file system on you local machine with your ssh crendentials.
sshfs {remote_user}@{remote_host}:{path_to_remote_folder} {local_folder}
Thats all, fire up your fav GUI editor and point it to the file in the local folder that mounted the remote folder.
One can tune the sshfs caching and timeout values to suit one's needs.
This also helps if you wanna run some some quick and dirty scripts on remote files and the script is difficult to setup on the remote machine due to limited access.
Saturday, January 24, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment