Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mount remote file system using sshfs and without root permission

Tags:

sshfs

I am using a admin'ed machine as a regular user and would like to mount some remote filesystem through sshfs. The machine doesn't have sshfs install. Is there a way that I can install it as a regular user and mount the remote filesystem?

like image 789
qkhhly Avatar asked Aug 16 '12 13:08

qkhhly


People also ask

How do I permanently mount sshfs?

If you want to permanently mount the remote directory you need to edit the local machine's /etc/fstab file an add a new mount entry. This way when your system boot up it will automatically mount the remote directory. To mount a remote directory over SSHFS from /etc/fstab , use fuse. sshfs as the filesystem type.

What is sshfs in Linux?

SSHFS itself is a file system in user space (FUSE) that uses the SSH File Transfer Protocol (SFTP) to mount a remote file system. The sshfs command is a client tool for using SSHFS to mount a remote file system from another server locally on your machine.

Is sshfs secure?

Using an SSHFS connection, you can browse, access, and modify files and directories on your A2 Hosting account as if they were stored on your local computer. As its name implies, SSHFS uses SSH (Secure Shell) to communicate with the server, so all connections are encrypted and secure.


1 Answers

If you have access to the folder on the remote machine this should be possible in the following way:

sshfs [email protected]:/foldertomount/ ~/mountpoint

The ssh user has to have permissions to the "foldertomount" while your local user has to have permission to the "mountpoint".

like image 76
Marius Avatar answered Sep 21 '22 12:09

Marius