sobota, 11 września 2010

Mounting ssh shares using sshfs

SSH is absolutely great. You can not only access remote computer's shell but also files. Probably you know you can access a ssh server using places -> connect to server from Gnome's menu. It's very usefull but with some programs (like matlab) you need to your mount ssh share. To do so you'll need sshfs ...

sudo apt-get install sshfs

To mount your share just use

sshfs [user@]host[:remote_dir] mount_point [ssh_options]

so for example

sshfs bodwick@192.168.0.1:/home/bodwick/my_ssh_share ~/my_remote_ssh_share/

to mount directory 'my_ssh_share' placed in remote user's home folder, host ip 192.168.0.1 using user name 'bodwick', the share is mounted in 'my_remote_ssh_share' in local user's home folder.

In case of any problems just consult the man pages.
http://www.digipedia.pl/man/doc/view/sshfs.1/

Brak komentarzy:

Prześlij komentarz