Skip to content
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

Documentation is OK - Problem with "path" option #6

Open
harkor opened this issue Jan 23, 2017 · 0 comments
Open

Documentation is OK - Problem with "path" option #6

harkor opened this issue Jan 23, 2017 · 0 comments

Comments

@harkor
Copy link

harkor commented Jan 23, 2017

Hello,

I'm trying to use your module but I ave some problems...

On the README, you say : sshfs.mount(user, host, mountpoint, callback);

If I check the code : /lib/sshfs-node.coffee I see : sshfs.mount = (host, mountpoint, options, callback)

In the options I use user, port and path.

But when I execute "sshfs.mount", It doesn't work and on the "Error", I don't see my remote host path.

`var mountOptions = {
user : 'MYUSER',
port : MYPORT,
path : '/MY/FOLDER/FROM/ROOT/'
};

sshfs.mount('MYHOST', '/home/MYUSER/MY_LOCAL_DIRECTORY/', mountOptions, function(result){
console.log(result);
});`

The result is
{ Error: Command failed: sshfs -o cache=yes -o StrictHostKeyChecking=no MYUSER@MYHOST:/ /home/MYUSER/MY_LOCAL_DIRECTORY/ read: Connection reset by peer

The "path" option is not written on the error.

If I execute myself sshfs I can connect on the remote directory.

sshfs -p MYPORT MYUSER@MYHOST:/MY/FOLDER/FROM/ROOT/ /home/MYUSER/MY_LOCAL_DIRECTORY/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant