EanderAlx.org

Linux, Virtualization and whatever I find interesting ...

User Tools


Site Tools



Mount Filesystem via SSH

  • SSHFS stands for Secure SHell FileSystem. Its a filesystem for FUSE (Filesystem in Userspace) so its possible for unprivileged user to mount the fs over an SSH connection.

  • On server-site a running ssh-server which understand SFTP (SSH File Transfer Protocol) is needed.
  • With the built-in SSH authentication and encryption SSHFS is a safe and convenient way for data transfer across insecure networks (Internet).

Installation (Ubuntu 8.04 LTS)

 sudo apt-get install sshfs

Verwendung

1. create mountpoint

 mkdir ~/sshfs

2. mount (possible without root privileges)

 sshfs user@host:/data/ ~/sshfs

3. umount

 fusermount -u /sshfs/

Problems

Connection Timeout

Solution:

  • in your local ssh configuration you can define the host (~/.ssh/config). There must be set a "ServerAliveInterval".
  ServerAliveInterval 60 # alle 60 Sekunden

you ever mount 1T Dataspace … ignore that

linux/mount_via_ssh.txt · Last modified: 23.03.2013 18:38 by eanderalx