It provides a command-line and a GTK frontend, to make mounting and unmounting a simple one click/command process.

It provides a command-line and a GTK frontend, to make mounting and unmounting a simple one click/command process.

−

−

== Troubleshooting ==

−

===Connection reset by peer===

−

* If you are trying to access the remote system with a hostname, try using its IP address, as it can be a domain name solving issue. Make sure you edit {{ic|/etc/hosts}} with the server details.

−

* If you are using non-default key names and are passing it as {{Ic|-i .ssh/my_key}}, this won't work. You have to use {{Ic|-o IdentityFile<nowiki>=</nowiki>/home/user/.ssh/my_key}}, with the full path to the key.

−

* Adding the option '{{Ic|sshfs_debug}}' (as in '{{Ic|sshfs -o sshfs_debug user@server ...}}') can help in resolving the issue.

−

* If you're trying to sshfs into a router running DD-WRT or the like, there is a solution [http://www.dd-wrt.com/wiki/index.php/SFTP_with_DD-WRT here].

{{Note| When providing more than one option for sshfs, they must be comma separated. Like so: '{{Ic|sshfs -o sshfs_debug,IdentityFile<nowiki>=</nowiki></path/to/key> user@server ...}}')}}

−

===Remote host has disconnected===

−

* If you recieve this message directly after attempting to use sshfs, try checking the path of your Subsystem listed in etc/ssh/sshd_config on the remote machine to see if it is valid.

−

* you can check this by typing {{Ic|find / grep XXXX}} where XXXX is the path of the subsystem

==Automounting==

==Automounting==

Line 119:

Line 106:

(I've used first form, second is based on docs, so YMMV, but it should at least be close)

(I've used first form, second is based on docs, so YMMV, but it should at least be close)

+

+

== Troubleshooting ==

+

===Connection reset by peer===

+

* If you are trying to access the remote system with a hostname, try using its IP address, as it can be a domain name solving issue. Make sure you edit {{ic|/etc/hosts}} with the server details.

+

* If you are using non-default key names and are passing it as {{Ic|-i .ssh/my_key}}, this won't work. You have to use {{Ic|-o IdentityFile<nowiki>=</nowiki>/home/user/.ssh/my_key}}, with the full path to the key.

+

* Adding the option '{{Ic|sshfs_debug}}' (as in '{{Ic|sshfs -o sshfs_debug user@server ...}}') can help in resolving the issue.

+

* If you're trying to sshfs into a router running DD-WRT or the like, there is a solution [http://www.dd-wrt.com/wiki/index.php/SFTP_with_DD-WRT here].

{{Note| When providing more than one option for sshfs, they must be comma separated. Like so: '{{Ic|sshfs -o sshfs_debug,IdentityFile<nowiki>=</nowiki></path/to/key> user@server ...}}')}}

+

===Remote host has disconnected===

+

* If you recieve this message directly after attempting to use sshfs, try checking the path of your Subsystem listed in etc/ssh/sshd_config on the remote machine to see if it is valid.

+

* you can check this by typing {{Ic|find / grep XXXX}} where XXXX is the path of the subsystem

==See also==

==See also==

Revision as of 17:59, 15 November 2012

You can use sshfs to mount a remote system - accessible via SSH - to a local folder, so you will be able to do any operation on the mounted files with any tool (copy, rename, edit with vim, etc.). Using sshfs instead of shfs is generally preferred as a new version of shfs hasn't been released since 2004.

Also, make certain that before connecting, you set the file permissions for any local client folders you will attempt to mount a remote directory to. I.e., do not have everything owned by root! You could also run the mount command as a regular user, it should work as well.

This will mount the remote directory, launch MC, and unmount it when you exit.

Thunar has issues with FAM and remote file access. If you experience remote folders not displaying, getting kicked back to the home directory, or other remote file access issues through Thunar, replace fam with gamin. Gamin is derived from fam.

# pacman -S gamin
# nano /etc/rc.conf #remove fam in daemons

Chrooting

You may want to jail a (specific) user to a directory.To do this, edit /etc/ssh/sshd_config: