EanderAlx.org

Linux, Virtualization and whatever I find interesting ...

User Tools


Site Tools


linux:mount_via_ssh

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

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
linux/mount_via_ssh.txt · Last modified: 23.03.2013 17:38 by eanderalx