First let me say that many of these blog posts are here for my information as well as yours.
Going from a Windows Desktop environment to a Linux (Fedora) Desktop environment has its challenges. Going from the knowing to the unknown always involves a learning curve.
Whether you are a power user or web-developer, it makes no difference. You have reason to be able to connect to a remote system via SSH, or FTP to make changes to files. Many of us, not including myself any longer, use applications like SecureCRT to ssh directly into the server and use VIM to manipulate the files. Possibly we might use Zend Studio IDE and use their built in SSH/FTP to connect to the box to edit the files. Whatever method you are using on Linux, Unix there is a easier way.
REMOTE FILE SYSTEM MOUNTING!!!!
To connect to a remote file system securely, you can use sshfs and fuse together. Fuse is a command used to mount remote file systems encrypted through SSH.
Doing so, will allow you to modify files as if they were an additional drive on your system.
First, remember this only applies if your desktop environment is a Linux environment and NOT WINDOWS.
The packages that you will need are listed below:
1. sshfs
2. fuse-utils
These are the commands needed for the different types of packages. Also, you will need to be root in order to do these following steps.
STEP: 1
apt-get install fuse-utils sshfs
sudo apt-get install fuse-utils sshfs
yum install fuse-utils sshfs
urpmi fuse-utils sshfs
STEP: 2
mount the fuse module
STEP: 3
Create the mount point.
STEP: 4
STEP: 5
Add yourself to the fuse group
All these steps should have been done as root.
Now, switch to the user that you are normally, I am assuming that you are not root all the time. Rather, I should say switch to the user that you bound to the fuse group.
HOW TO CONNECT TO THE REMOTE SYSTEM
This command explained:
sshfs – filesystem client based on ssh.
remote-user – the user you want to login as on the remote system.
@remote.server – the domain name or ip-address of the remote system.
:/remote/directory – the directory on the remote system that you would like to mount.
/mnt/remote-filesystem – the directory on your local box that you would like to point to the remote file system.
Once you issue this command, you will get a warning asking you to accept the key to connect to the server using ssh and then the password.
Upon being connected, you can cd to the /mnt/remote-filesystem directory and do a ls -ls and you will see that now you have access to the files on the remote system as if they were on your local machine.
One thing to keep in mind is that if your connection to the remote system is slow, file browsing and refreshing will be slow.
Once you are done with this feature, you can unmount the directory as follows:
for example, in my case, I would use
$fusermount -u /mnt/remote-filesystem
If you happen to get the following error:
fuse: bad mount point `/mnt/remote-fs/’: Transport endpoint is not connected
You will have to use the fusermount command as listed above and try reconnecting
Any questions or concerns, please let me know.
yellow diamond
Hey! This is my first comment here so I just wanted to give a quick shout out and tell you I really enjoy reading your articles. Can you recommend any other blogs/websites/forums that go over the same topics? Thank you so much! yellow diamond
Well, I dont have specific places that I will look. I know that many topics that I put on my blog have already been covered in many other blogs but I always feel that something was left out. So I tend to write about these topics and fill in what is needed. HOwever, to say that I have a specific blog that I look at, I dont. Stay tune I am writing one now that will deal with tricks and hits for mysql.
http://later181.blog.fc2.com Thanks for that awesome posting. It saved MUCH time
Hi dude! I really like what you’re providing here. Keep posting that way.
Awsome website ! Thanks for creating it. Keep going that way.
Valuable administrative, thnx intended for expressing your blog write-up. I recently found it all fantastic. Regards, Victoria…
Hmm is anyone else experiencing problems with the images on this blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog. Any responses would be greatly appreciated.
I am not having any issues with the images. Try it again.