brian | 7 Aug 05:29 2015

sshfs remounting hangs

I wrote up a community question at 
http://unix.stackexchange.com/questions/216611/sshfs-remount-hangs that 
didn't really answer the question, so I thought I'd post the same 
problem here.

On Fedora 21 current patches, in a local LAN environment, I'm mounting 2 
filesystems with sshfs. The remote server is on a reliable LAN network, 
the ssh keys are correctly setup for passwordless login.

So I create an empty directory in my home dir (which is a local 
filesystem), mount with:

|sshfs -o default_permissions me <at> remoteserver:/mntpoint /home/me/mountdir |

The connection works fine and is very stable, performs well, no 
complaints. Then maybe the local machine reboots or something unexpected 
happens so the connection is broken ungracefully.  I'm running this on 
VMware workstation with Windows 7 host, so reboots happen more often 
than I'd like.

Upon reboot, restart, re-attempt, the same command above will hang ... 
indefinitely. If I control-C it and fusermount -u it, it appears to 
clean up, but still cannot remount. But the weird thing: if I specify a 
new mount point in my home directory, it works perfectly again (same 
remote point). Works perfectly again until something happens and I have 
to start all over again.

Reboots of the local machine will not clear it. The mount directory is 
verified empty, I've even removed the mount point directory and 
recreated the same name... Nope.
(Continue reading)

Christoph Holtermann | 27 Jul 20:05 2015
Picon
Picon

hard links

Hello,

I'm using hard links for a backup system. I don't seem to get them
to work. I wonder if it's because of me or of the implementation.

on the client side:
sshfs -V shows
SSHFS version 2.5
FUSE library version: 2.9.4
fusermount version: 2.9.4
using FUSE kernel interface version 7.19

on the server side:
OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1e 11 Feb 2013

On the server comparing two files:
ls -lai deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
9618822 -rw-rw-r-- 6 pi pi 1234412 Mär 24 20:59 deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
ls -lai deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
9618822 -rw-rw-r-- 6 pi pi 1234412 Mär 24 20:59 deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
They share the same inode, they are hardlinked.

On the client comparing the same files:
ls -lai deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
11 -rw-rw-r-- 1 christoph 1000 1234412 24. Mär 20:59 deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
ls -lai deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
15 -rw-rw-r-- 1 christoph 1000 1234412 24. Mär 20:59 deprecation_092192f3fe.log.2015-03-24T21:00+0100.gz
Different inode, so I can't recognize if they are hardlinked.

(I removed the different paths from the examples)
(Continue reading)

Peter P. | 17 Jun 19:11 2015

#670926 "fopen: File exists (errno = 17)" seems to be still present

Hi Miklos, hi all,

I am still getting the "fopen: File exists (errno = 17)" message when
saving attachments from mutt to an sshfs-mounted volume on Debian
testing, with package sshfs version 2.5-1 installed. Is this known?
Thank you so much for maintaining this wonderful piece of software!

best, P

------------------------------------------------------------------------------
Lakshmi Muthuswamy | 8 May 20:07 2015

error in compilation

Hi,
This is Mac OS X Yosemite system.
After I configure using ./configure,
Make gives the following error

Making all in include

/Library/Developer/CommandLineTools/usr/bin/make  all-am

Making all in lib

  CC       fuse.lo

In file included from fuse.c:19:

../include/fuse_compat.h:69:10: fatal error: 'sys/statfs.h' file not found

#include <sys/statfs.h>

         ^

1 error generated.

make[1]: *** [fuse.lo] Error 1

make: *** [all-recursive] Error 1

Thank you so much for your help

This electronic message is intended for the use of the named recipient only, and may contain information
(Continue reading)

Mustafa COMOGLU | 30 Apr 17:10 2015
Picon
Picon

share with symbolic links

Hi,
I used this command to share my storage to another machine but it does not
allow me to share the storage with symbolic links? How can I allow to share
the symbolic links as well like the other folders?

sshfs -o allow_other -o ro sysop <at> koeri-arch:/mnt/mSEED_data/archive
/mnt/Disk_203.40

​thanks in advance​

-- 

Saygılarımla

Mustafa ÇOMOĞLU / Geophysicist/Jeofizik Mühendisi

BOUN KOERI/ B.Ü. KRDAE Ulusal Deprem Izleme Merkezi

T: comoglu <at> boun.edu.tr  e: +90216 5163269
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Fuse-sshfs mailing list
Fuse-sshfs <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-sshfs
(Continue reading)

Peter Möller | 27 Mar 14:46 2015
Picon
Picon

sshfs-*server* on OS X?

Hello!

This is not a bug, so I might be in the wrong place.
I would like to get a sshfs-*server* running on an OS X machine (a server, in fact) but I cannot find any
information on that. Finding the sshfs-*client* for OS X is easy enough, but the server is highly elusive. 

I do not understand what is required, nor can I find any source for it. It is based on scp/ssh, right? OS X uses
OpenSSH, so that should be covered. What else is required?

With kind regards,
/Peter Möller
--------------------------------------------------------------------------
Peter.Moller <at> cs.lth.se, Computer Systems Manager
http://cs.lth.se/peter_moller
Department of Computer Science, Lund University
Box 118, S-221 00 LUND, Sweden, tfn +46 46 222 41 56

Attachment (smime.p7s): application/pkcs7-signature, 5811 bytes
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fuse-sshfs mailing list
Fuse-sshfs <at> lists.sourceforge.net
(Continue reading)

Sverd Johnsen | 26 Mar 15:52 2015

O_TMPFILE on sshfs?

A program I use tries this on sshfs and fails:

open("/tmp/2001/remotefs/incoming",
O_WRONLY|O_DIRECTORY|O_CLOEXEC|O_TMPFILE) = -1 EOPNOTSUPP (Operation
not supported)

On non-sshfs it does this:

[...]
open("/tmp/2001/test/incoming", O_WRONLY|O_DIRECTORY|O_CLOEXEC|O_TMPFILE) = 4
[...]
sendfile(4, 3, [0], 95476)              = 95476
[...]
linkat(AT_FDCWD, "/proc/self/fd/4", AT_FDCWD,
"/tmp/2001/test/incoming/foobar", AT_SYMLINK_FOLLOW) = 0
[...]

So I guess O_TMPFILE is not supported at this point?

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
"Mario A. Valdez-Ramírez" | 19 Mar 13:42 2015

Bug report: passwords longer than 64 characters from stdin


Fuse SSHFS maintainers:

   Hi. This is a bug report for handling passwords longer than 64
characters from stdin.

If sshfs is called with the "password_stdin" option (for example, when
invoked with pam_mount) it will refuse to accept a password longer
than 64 characters.

The limit is hardcoded in the sshfs.c file (line 3069 in version 2.3,
line 3466 in version 2.5) with the variable named "max_password".

To reproduce, from the command-line you can use for example:

sshfs mvaldez <at> servername:/home/mvaldez/SHARE ./myfiles -o
"reconnect,idmap=user,password_stdin"

then type the password (sshfs will wait for the password from stdin
without prompt) and press Enter. If the password is longer than 64
characters it will fail with the message: "Password too long".

When used with pam_mount, the logs in /var/log/auth.log show the
following messages:
pam_mount(mount.c:69): Messages from underlying mount program:
pam_mount(mount.c:73): Password too long
pam_mount(pam_mount.c:521): mount of
sshfs#mvaldez <at> servername:/home/mvaldez/SHARE failed

This limit seems to be inherited from the first patches sent to the
(Continue reading)

Josh Lovins | 10 Mar 18:51 2015
Picon

Getting slow speeds in sshfs

When copying files from a sshfs mount to the local drive, my speeds are way
slower than if i were to use scp or sftp.

The versions I'm using of sshfs and fuse is

SSHFS version 2.5

FUSE library version: 2.9.2

fusermount version: 2.9.2

using FUSE kernel interface version 7.19

I'm also using the hpn patched ssh with version

OpenSSH_6.6.1p1-hpn14v5 Ubuntu-5hpn14v5~wrouesnel~trusty2, OpenSSL 1.0.1f 6
Jan 2014

located from

https://launchpad.net/~w-rouesnel/+archive/ubuntu/openssh-hpn

I've tweaked my TCP window sizes and options with these below in
/etc/sysctl.conf

net.core.wmem_max=25165824

net.core.rmem_max=25165824

net.ipv4.tcp_rmem= 20480 174760 25165824
(Continue reading)

Linda Burchi | 4 Mar 17:14 2015

issue connecting remote disks - help on bug - NoMachine

Hello,
my name is Linda Burchi, I am a project manager in Nomachine.com.
We currently have one trouble report which could be related to a bug in 
your code.
https://www.nomachine.com/TR02M05006
We are using sshfs (2.4 version) with fuse (2.9.0 version) to connect 
remote disks. We noticed some problems while refreshing content of 
connected disks. When we connect a disk from a computer A (linux 64bit) 
to a computer B (linux 64bit) and  we add some files to the remotely 
connected disk on computer A, this files are not visible in 
terminal/file managers on computer B. Refreshing content in file manager 
doesn't solve this problem. We tried different sshfs options when 
connecting disks and none of them solves our problem.
I put in copy Michal Czyrski, a developer who is working on this TR, 
feel free to contact him if you need further information and details.
Please take into account that we have a testing team and it is not a 
problem for us to test a patch and check if it fixes the bug.
Any feedback and comments would be highly appreciated.
Best regards,
Linda Burchi

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
(Continue reading)

dbacc | 20 Feb 17:02 2015
Picon

Problems establishing connection after password prompt

Hey,

I'm trying to mount a remote folder via sshfs on arch with current software.

User on the server side is different from local user.

After entering sshfs -C userserver <at> server:serverfolder clientfolder I
get the password promptfor userserver. Then nothing more happens, i.e.
the shell does not return. So after help from the arch forums I tried
again with debug informations (-d and -o LOGLEVEL=DEBUG3) turned on .
Unfortunately this does not solve my problem, since for me there is no
useful information. Apparently at some stage after login prompt it gets
stuck

|Password: 
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 0
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to client.
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions <at> openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x08
debug2: client_session2_setup: id 0
(Continue reading)


Gmane