-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup SFTP (in order to make sshfs work) #307
Comments
It might be that the path to the sftp-server executable is not found because it may be running outside of proot.. Not sure how to debug that though but the arch wiki says that this error message happens when the sftp-server executable is not valid: https://wiki.archlinux.org/title/SSHFS#Remote_host_has_disconnected |
@Gerschtli I’ve also tried |
Also I don’t think it should run outside proot since I run |
Looks like a proot problem proot-me/proot#243 |
A patched sftp-server, as a workaround, can mitigate the problem. |
@SonicStark I tried to patch it like this: { pkgs ? import <nixpkgs> {}
}:
let
openssh = pkgs.openssh.overrideAttrs (old: {
patchPhase = (old.patchPhase or "") + ''
sed -i 's/\(platform_disable_tracing(\)1\();\)/\10\2/' sftp-server.c
'';
});
in
openssh But for some reason it failed much later like this (
|
@unclechu Does it fail without the patch? Looks like |
I tired to rebuild it inside Nix-on-Droid environment. Maybe it’ll actually fail without a patch. |
How could I setup SFTP in order to make sshfs work? I made a simple script to start an SSHD server:
The regular ssh works fine but if I try to mount via sshfs I get an error like “Connection closed by the user". Here is the end of the log of
sshfs
call:The text was updated successfully, but these errors were encountered: