sshfs | A network filesystem client to connect to SSH servers
kandi X-RAY | sshfs Summary
kandi X-RAY | sshfs Summary
A network filesystem client to connect to SSH servers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sshfs
sshfs Key Features
sshfs Examples and Code Snippets
Community Discussions
Trending Discussions on sshfs
QUESTION
I have the following problematic and I am not sure what is happening. I'll explain briefly.
I work on a cluster with several nodes which are managed via slurm. All these nodes share the same disk memory (I think it uses NFS4). My problem is that since this disk memory is shared by a lots of users, we have a limit a mount of disk memory per user.
I use slurm to launch python scripts that runs some code and saves the output to a csv file and a folder.
Since I need more memory than assigned, what I do is I mount a remote folder via sshfs from a machine where I have plenty of disk. Then, I configure the python script to write to that folder via an environment variable, named EXPERIMENT_PATH. The script example is the following:
Python script:
...ANSWER
Answered 2022-Mar-31 at 07:00I shall emphasize that all the nodes in the cluster share the same disk space so I guess that the mounted folder is visible from all machines.
This is not how it works, unfortunately. Trying to put it simply; you could say that mount point inside mount points (here SSHFS inside NFS) are "stored" in memory and not in the "parent" filesystem (here NFS) so the compute nodes have no idea there is an SSHFS mount on the login node.
For your setup to work, you should create the SSHFS mount point inside your submission script (which can create a whole lot of new problems, for instance regarding authentication, etc.)
But before you dive into that, you probably should enquiry whether the cluster has another filesystem ("scratch", "work", etc.) where there you could temporarily store larger data than what the quota allows in your home filesystem.
QUESTION
Background: I work in terminal R on a remote system and don't have interactive graphical capabilities. Perhaps I could manage to get X11 working but so far I have been productive using some workarounds, rendering plots to file directly and mounting the remote image dir using sshfs.
Interactive graphics don't work for me but I'd like to visualize target dependencies. Is it possible to somehow render tar_visnetwork()
to a static image? Something like the following (which doesn't work)?:
ANSWER
Answered 2022-Mar-11 at 13:04tar_visnetwork
creates a HTML widget. You can render this file in your local Browser:
QUESTION
I hope someone can help me with my problem.
Background: I want to mount very big ISOs to my raspberry via sftp. If I try to mount the iso from a local folder, for example Downloads\2005-2010.iso it works perfect. But if I try to mount the ISO from a mounted sshfs folder, it fails. I also tryed to change the permission to 777 (only for testing) to the mounted ftp folder, but no success.
I using "sshfs" to mount my ftp webhosting folder. (Works perfect)
The Output is different to the following statements:
- Statement
sudo mount /home/pi/isomount/2005-2010.iso /home/pi/medien/2005-2010/
1.1 Output
mount: /home/pi/medien/2005-2010: cannot mount /home/pi/isomount/2005-2010.iso read-only.
- Statement
sudo mount -o loop /home/pi/isomount/2005-2010.iso /home/pi/medien/2005-2010/
2.1 Output
mount: /home/pi/medien/2005-2010/: failed to setup loop device for /home/pi/isomount/2005-2010.iso.
Any idears what I can do to mount this .iso?
...ANSWER
Answered 2022-Jan-29 at 16:00For me, this worked :
QUESTION
I have a virtual web server running linux and on that I have a user called "user". this is also the user, that i use when i mount the webserver's directory with sshfs. sadly this user cannot write any files for the website i am working on, only the user www-data is allowed to do that. if i use: chown -R user:user ./
to change the owner, i am allowed to change the data as "user", but now the website cannot be opened in the webbrowser anymore. so i have to change the owner of the files back, after i am done editing the files which is extremely tedious.
I have added the user "user" to the www-data group, but this is not changing anything.
How can I set everything up in a way, that the user "user" can edit the files as well as www-data?
...ANSWER
Answered 2021-Dec-02 at 16:15You need to change the permissions for your files so members of the same group are allowed to write. You can do this with the chmod g+w -R ./
command, this works for existing files.
However, you will notice that newly created files will be created with the owner set to user:user
, which would still deny access to www-data
. You can change this behavior by setting the default ACL like so: setfacl -R -d -m g:www-data:rw ./
The setfacl options mean:
-R
Recursive-d
Action applies to default ACL-m
Modify the ACLg:www-data:rw
Set group by default towww-data
and group permission to read and write.
QUESTION
VS Code's default Remote SSH feature installs and runs undesired software on the server for watching files and other purposes which I don't totally understand and don't care.
Is there some plugin or setup which provides a simple way to just tell VS Code in a workspace file or in settings my SSH Server Credentials and be able to edit files in the server in the same way I do with codeanywhere.com, where I can simple see the server files in a exploration bar to the left and edit files as tabs to the right.
It's totally the same thing I get with the default Remote SSH VSCode feature, except that I don't want to kill small servers by running additional expensive processes that take excess memory and CPU.
I also don't want to have to mount the remote file system with SSHFS unless that's managed automatically by some software because SSHFS requires a lot of fine tuning to keep the connection alive and everything, and I also would like to keep the option to open terminal tabs that are directly connected to my server...
...ANSWER
Answered 2021-Nov-20 at 05:37The short answer is, there's no way to accomplish this in the constraints you've set.
The way "Remote SSH" works in VSCode is it establishes an SSH session to the remote host, downloads "host" software on the remote server, and tunnels through the SSH connection to talk to that host software.
You can think of the way VSCode does this as splitting it's own executable code between the GUI from the file operations. It runs the GUI on your computer, but the file operations on the remote one, and uses the SSH connection for them to talk to one another.
The alternatives to that are either running SSHFS, which as you said yourself is quite finicky (though there's one extension for VSCode that somewhat handles that), or some kind of file-synchronization (Unison comes to mind), where you're effectively editing local files, and then the files/changes are being synchronised remotely.
Another possibility, but that again comes with it's own limitations, would be to use the new "hosted" VSCode (on https://vscode.dev), and use that to edit a remote repo (say, in GitHub). Then just login to the remote server to pull the code
QUESTION
So I have mounted a part of a development server which hold a virtual environment that is used for development testing. The reason for this is to get access to the installed packages such as Django-rest-framework and Django itself and not having it set up locally (to be sure to use the same version as the development server has). I know that it's perhaps better to use Docker for this, but that's not the case right now.
The way I've done it is installing SSHFS via an external brew (as it's no longer supported in the brew core) - via this link https://github.com/gromgit/homebrew-fuse
After that I've run this command in the terminal to via SSH mount the specific part of the development server that holds the virtual enviornment:
...ANSWER
Answered 2021-Nov-08 at 09:44The solution to the problem was using the VSCode extension Remote - SSH and run VSCode directly in the remote location, and from there being able to access the virtual environment.
QUESTION
I can mount (in the fxce4-terminal) successfully with something like:
...ANSWER
Answered 2021-Aug-11 at 16:54The here-string syntax you tried to use is Bash-specific; os.system()
runs sh
.
You're better off using subprocess
anyway, as also recommended by the os.system()
documentation.
QUESTION
I am trying to connect two servers with SSHFS.
As root, when launching the command sshfs myuser@ip_adress:/some/dir /other/dir -o idmap=user,identityfile=/home/myuser/.ssh/id_rsa
, everything works.
However, when I set this SSHFS configuration in /etc/fstab
and running mount -a
, it hangs. The line in /etc/fstab
is:
ANSWER
Answered 2021-Jun-10 at 08:02So I found the issue: I was trying to mount the .ssh
folder (which has the key to connect to the remote server).
I don't know exactly why it was working on the command line and not through fstab (may be something with the SSH agent) but mounting the folder used to connect to SSHFS caused the issue. I moved the SSH keys to another directory and then it worked like a charm.
QUESTION
I ask for help!
...ANSWER
Answered 2021-Mar-11 at 10:50sshfs
should have been killed by SIGHUP
prematurely.
Try ignoring SIGHUP
like this:
QUESTION
Okay, this is a very strange case of this "No secret key" error. I've looked at all the other answers related to this and none of them are related to my problem.
On my machine I do this..
...ANSWER
Answered 2021-May-29 at 01:26I'm an idiot, lol. the stdin is already consumed, so it can't prompt for a password at that point, unless I used a gui password prompt
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sshfs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page