Gnome users depend on nautilus for all the networking and mounting but it uses sftp for mounting ssh folders and that doesn't always work for the best.
If your like me and you use pcmanfm, thunar or midnight-commander than you will want to use sshfs. I think even if I used nautilus I would use sshfs because it mounts the remote directory as if it were local and this seems to be easier for applications to read the files.
I'm going to show you my method for both mounting my shares with sshfs and how I use sh in midnight-commander to quickly copy files over my network.
The first thing I did was create a directory in my home folder ~/DekstopSSH. This is where I will mount sshfs.
mkdir DesktopSSH
Second I created an alias for the long string for mounting. This is the structure of the command:
sshfs remoteuser@remoteIP:/home/remoteuser /home/localuser/DesktopSSH
you will be prompted for your user password, and after successfully entering that your remote folders are now mounted as if there were local files in the directory that you created.
To close the connection use the command
fusermount -u ~/DesktopSSH
If you would rather use more of a gui you can create two scripts, one for mounting and the other for un-mounting.
For mounting paste this into an empty text file and replace with your information:
#!/bin/bash
sshfs sshserver@ip.of.ser.ver:/home/remoteuser /home/localuser/DesktopSSH &
exit
save the file and make it executable.
chmod +x "filename" will make it executable.
For unmounting you would create another file that contains this:
#!/bin/bash
fusermount -u ~/DesktopSSH &
exit
Again replacing with your info and making it executable.
Now you can just click on the mount file and a nifty little box should pop up and ask you for a password.
Its really that simple.
Now for Part two I'm going to explain in brief how to copy files over from a remote folder using sh in the cli file manager midnight commander.

1. In the drop down menu for left select shell link.
2. Enter the remoteuser@remoteIP in the box.
3. Enter the password

4. Browse to the file you want to copy, highlight it and F5 to copy.
And... Success!
Thats all I have for today thanks for reading!




0 comments:
Post a Comment