LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2017, 01:47 PM   #1
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 185

Rep: Reputation: 23
problems with sshfs after ssh/ssl upgrades - slackware 14.2


here an sshfs problem : after i upgraded ssh/ssl packages on several slackware v14.2 boxes including the main file server i am unable to use sshfs which worked perfectly fine before. sshfs just hangs - till i press Ctrl-C. all other ssh functions are fine, passwordless in all directions, from any machine to any machine. in the meantime i rebooted all machines as restarting sshd didn't help much. all ssh specific user files should be fine i believe. here the command i use :
sshfs ${USER}@IP_NUMBER:${HOME} ${HOME} -p PORT_NUMBER -F /home/.sshfs/${USER}/.ssh/config -o nonempty,default_permissions,allow_other,sshfs_debug,debug -C
the only semi-helpful error message i see is on the server to which i like to connect with sshfs - and only if i press Ctrl-C kind of timely a few seconds after invoking the sshfs command :
sshd[7752]: Did not receive identification string from IP_NUMBER port A_PORT_NUMBER
the /etc/mtab entry seems to list the mounted remote directory but this is actually not the case as df or mount don't show such.

packages :
libssh-0.7.3-x86_64-1
libssh2-1.7.0-x86_64-1
openssh-7.4p1-x86_64-1
openssl-1.0.2k-x86_64-1
openssl-solibs-1.0.2k-x86_64-1
sshfs-2.8-x86_64-1
content of my sshd_config file :
Port MY_PORT_NUMBER
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
AllowAgentForwarding yes
AllowTcpForwarding yes
GatewayPorts yes
X11Forwarding yes
Subsystem sftp /usr/libexec/sftp-server
does anybody have a clue how to continue from here ? to me it looks like an incompatibility between sshfs and ssh versions ?

thanks much, bye, pisti
 
Old 03-05-2017, 02:20 PM   #2
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 912

Rep: Reputation: 218Reputation: 218Reputation: 218
Since the ssh/ssl package upgrades you did, did you upgrade sshfs-fuse?

I'm running slackware 14.2 64 and just installed sshfs-fuse from slackbuilds, a simple mounting worked fine for me.
 
Old 03-05-2017, 03:24 PM   #3
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 185

Original Poster
Rep: Reputation: 23
thanks, glorsplitz, for your input.
i actually had the SBo sshfs-fuse package removed right before as its purpose was confusing to me in view of the original Slack sshfs/fuse packages. now, following your suggestion, i recompiled and re-installed sshfs-fuse-2.8-x86_64-1_SBo again - but the result is the same : no luck, no sshfs mounts whatsoever ! but you are right, in the past i had all those ssh/ssl/sshf/fuse packages installed, and sshfs worked just fine...now not anymore...

meanwhile i am wondering if my IPS modem plays a role here : the main server is a VPS out on the web on a public IP while my sshfs clients are behind this modem firewall whose port-forwarding service gets outside ssh calls forwarded to a client in question. but then again - nothing changed except for those ssh/ssl package updates from Slackware64 current...

i tried other sshfs option without success such as :
-f
sftp_server=/usr/libexec/sftp-server
ssh_protocol=2
directport=PORT
what is there to try next ?
 
Old 03-06-2017, 11:30 AM   #4
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 185

Original Poster
Rep: Reputation: 23
moreover, does anybody know what the differences are between these three packages - or how and in what order they are supposed to be installed ?
sshfs-2.8-x86_64-1
fuse-2.9.5-x86_64-1
sshfs-fuse-2.8-x86_64-1_SBo
in any case, i can include/exclude among these three packages whichever i want - no difference : sshfs fails to mount !

lastly, i just tried the same scenario with another slackware box i have out there on the web (no IPS modem interfering with some obscure firewall settings) - and also here the same problem : no sshfs mount possible !

what's wrong here ? as said - a few days ago everything was just fine !

any feedback greatfully appreciated ! bye, pisti
 
Old 03-08-2017, 11:42 AM   #5
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 185

Original Poster
Rep: Reputation: 23
UPDATE : i am able to mount with sshfs any directory from any SERVER to any mount point on any CLIENT - except for the mounting of home directories on home directory mount points ! so, no success so far with something that worked just fine before the ssh/ssl/sshfs upgrades on my Slackware 14.2 boxes.
- is the problem with some new feature(s) with the /etc/ssh/sshd_conf file ?

- is the problem between ssh and sshfs versions ?

- is the problem with some file/directory permission settings ?

- is the problem with some new and more strict ssh requirements ?
i desperately need to get this fixed - a truly big project is on hold because of this silly issue ! thanks, bye, pisti
 
Old 03-09-2017, 02:05 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
- does ssh work fine in the given situations?

- you REALLY need to get (us) some output from sshfs. didn't the -f option give anything? and -d (*)?

(*) most likely in combination with verbose options for ssh

Last edited by ondoho; 03-09-2017 at 02:07 AM.
 
Old 03-09-2017, 01:30 PM   #7
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 185

Original Poster
Rep: Reputation: 23
dear ondoho, thank you for your reply & suggestions ! here my answers :

0) ssh works just fine password-less in all directions - from serverA to serverB and vice versa, and criss-cross between an additional four other machines.

1) now, sshfs works fine too for all scenarios incl password-less mounts and mixed-users mounts (as long as no home2home mounts are used) such as :

Code:
userX@serverB:~$ sshfs serverA:. ~/MNT2/ -p portA -o nonempty,sshfs_debug -C -d -f
SSHFS version 2.8
FUSE library version: 2.9.5
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oPort=portA> <-oCompression=yes> <-2> <serverA> <-s> <sftp>
Server version: 3
Extension: posix-rename@openssh.com <1>
Extension: statvfs@openssh.com <2>
Extension: fstatvfs@openssh.com <2>
Extension: hardlink@openssh.com <1>
Extension: fsync@openssh.com <1>
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.23
flags=0x0003f7fb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000011
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 1, success, outsize: 40
unique: 2, opcode: LOOKUP (1), nodeid: 1, insize: 57, pid: 18103
unique: 3, opcode: ACCESS (34), nodeid: 1, insize: 48, pid: 20104
access / 04
   unique: 3, success, outsize: 16
unique: 4, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 4, success, outsize: 32
LOOKUP /.xdg-volume-info
unique: 5, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
getattr /.xdg-volume-info
[00001] LSTAT
[00002] LSTAT
  [00001]          ATTRS       41bytes (9ms)
  [00002]         STATUS       33bytes (10ms)
   unique: 5, success, outsize: 120
   unique: 2, error: -2 (No such file or directory), outsize: 16
unique: 6, opcode: LOOKUP (1), nodeid: 1, insize: 52, pid: 18104
LOOKUP /autorun.inf
getattr /autorun.inf
[00003] LSTAT
  [00003]         STATUS       33bytes (10ms)
   unique: 6, error: -2 (No such file or directory), outsize: 16
unique: 7, opcode: LOOKUP (1), nodeid: 1, insize: 47, pid: 20104
LOOKUP /.Trash
getattr /.Trash
[00004] LSTAT
  [00004]         STATUS       33bytes (9ms)
   unique: 7, error: -2 (No such file or directory), outsize: 16
unique: 8, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
[00005] OPENDIR
  [00005]         HANDLE       17bytes (10ms)
[00006] READDIR
[00007] READDIR
  [00006]           NAME     1021bytes (10ms)
  [00007]         STATUS       32bytes (10ms)
[00008] READDIR
[00009] READDIR
[00010] CLOSE
   unique: 8, success, outsize: 344
unique: 9, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 9, success, outsize: 16
unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 52, pid: 20104
LOOKUP /.Trash-1005
getattr /.Trash-1005
[00011] LSTAT
  [00008]         STATUS       32bytes (10ms)
  [00009]         STATUS       32bytes (10ms)
  [00010]         STATUS       28bytes (10ms)
  [00011]         STATUS       33bytes (10ms)
   unique: 10, error: -2 (No such file or directory), outsize: 16
unique: 11, opcode: LOOKUP (1), nodeid: 1, insize: 50, pid: 20075
LOOKUP /.screenrc
getattr /.screenrc
   NODEID: 2
   unique: 11, success, outsize: 144
unique: 12, opcode: LOOKUP (1), nodeid: 1, insize: 54, pid: 20075
LOOKUP /.bash_history
getattr /.bash_history
   NODEID: 3
   unique: 12, success, outsize: 144
unique: 13, opcode: LOOKUP (1), nodeid: 1, insize: 49, pid: 20075
LOOKUP /.emacs.d
getattr /.emacs.d
   NODEID: 4
   unique: 13, success, outsize: 144
unique: 14, opcode: LOOKUP (1), nodeid: 1, insize: 44, pid: 20075
LOOKUP /MNT
getattr /MNT
   NODEID: 5
   unique: 14, success, outsize: 144
unique: 15, opcode: LOOKUP (1), nodeid: 1, insize: 54, pid: 20075
LOOKUP /test_20170308
getattr /test_20170308
   NODEID: 6
   unique: 15, success, outsize: 144
unique: 16, opcode: LOOKUP (1), nodeid: 1, insize: 60, pid: 20075
LOOKUP /test_pisti_20170309
getattr /test_pisti_20170309
   NODEID: 7
   unique: 16, success, outsize: 144
unique: 17, opcode: LOOKUP (1), nodeid: 1, insize: 45, pid: 20075
LOOKUP /.ssh
getattr /.ssh
   NODEID: 8
   unique: 17, success, outsize: 144
unique: 18, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 18, success, outsize: 16
unique: 19, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 20, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 20, success, outsize: 32
   unique: 19, success, outsize: 16
unique: 21, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 21, success, outsize: 120
unique: 22, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 22, success, outsize: 344
unique: 23, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 23, success, outsize: 16
unique: 24, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 24, success, outsize: 16
unique: 25, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 25, success, outsize: 16
unique: 26, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 26, success, outsize: 32
unique: 27, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 27, success, outsize: 120
unique: 28, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 28, success, outsize: 344
unique: 29, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 29, success, outsize: 16
unique: 30, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 30, success, outsize: 16
unique: 31, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 32, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 32, success, outsize: 32
unique: 33, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 33, success, outsize: 120
   unique: 31, success, outsize: 16
unique: 34, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 34, success, outsize: 344
unique: 35, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 35, success, outsize: 16
unique: 36, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 36, success, outsize: 16
unique: 37, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 38, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 38, success, outsize: 32
unique: 39, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 39, success, outsize: 120
   unique: 37, success, outsize: 16
unique: 40, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 40, success, outsize: 344
unique: 41, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 41, success, outsize: 16
unique: 42, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 42, success, outsize: 16
unique: 43, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 43, success, outsize: 16
unique: 44, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 44, success, outsize: 32
unique: 45, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 45, success, outsize: 120
unique: 46, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 46, success, outsize: 344
unique: 47, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 47, success, outsize: 16
unique: 48, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 48, success, outsize: 16
unique: 49, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 50, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 50, success, outsize: 32
   unique: 49, success, outsize: 16
unique: 51, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 51, success, outsize: 120
unique: 52, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 52, success, outsize: 344
unique: 53, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 53, success, outsize: 16
unique: 54, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 54, success, outsize: 16
unique: 55, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 56, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 56, success, outsize: 32
   unique: 55, success, outsize: 16
unique: 57, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 57, success, outsize: 120
unique: 58, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 58, success, outsize: 344
unique: 59, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 59, success, outsize: 16
unique: 60, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 60, success, outsize: 16
unique: 61, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 62, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 62, success, outsize: 32
   unique: 61, success, outsize: 16
unique: 63, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 63, success, outsize: 120
unique: 64, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 64, success, outsize: 344
unique: 65, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 65, success, outsize: 16
unique: 66, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 66, success, outsize: 16
unique: 67, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 68, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 68, success, outsize: 32
unique: 69, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 69, success, outsize: 120
unique: 70, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 70, success, outsize: 344
unique: 71, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 71, success, outsize: 16
   unique: 67, success, outsize: 16
unique: 72, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 72, success, outsize: 16
unique: 73, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 73, success, outsize: 16
unique: 74, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 74, success, outsize: 32
unique: 75, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 75, success, outsize: 120
unique: 76, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 76, success, outsize: 344
unique: 77, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 77, success, outsize: 16
unique: 78, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 78, success, outsize: 16
unique: 79, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 79, success, outsize: 16
unique: 80, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 80, success, outsize: 32
unique: 81, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 81, success, outsize: 120
unique: 82, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 82, success, outsize: 344
unique: 83, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 83, success, outsize: 16
unique: 84, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 84, success, outsize: 16
unique: 85, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 85, success, outsize: 16
unique: 86, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 86, success, outsize: 32
unique: 87, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 87, success, outsize: 120
unique: 88, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 88, success, outsize: 344
unique: 89, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 89, success, outsize: 16
unique: 90, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 90, success, outsize: 16
unique: 91, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 91, success, outsize: 16
unique: 92, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 92, success, outsize: 32
unique: 93, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 93, success, outsize: 120
unique: 94, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 94, success, outsize: 344
unique: 95, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 95, success, outsize: 16
unique: 96, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 96, success, outsize: 16
unique: 97, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 97, success, outsize: 16
unique: 98, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 98, success, outsize: 32
unique: 99, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 99, success, outsize: 120
unique: 100, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 100, success, outsize: 344
unique: 101, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 101, success, outsize: 16
unique: 102, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 102, success, outsize: 16
unique: 103, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 103, success, outsize: 16
unique: 104, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 104, success, outsize: 32
unique: 105, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 105, success, outsize: 120
unique: 106, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 106, success, outsize: 344
unique: 107, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 107, success, outsize: 16
unique: 108, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 108, success, outsize: 16
unique: 109, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 109, success, outsize: 16
unique: 110, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 110, success, outsize: 32
unique: 111, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 111, success, outsize: 120
unique: 112, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 112, success, outsize: 344
unique: 113, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 113, success, outsize: 16
unique: 114, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 114, success, outsize: 16
unique: 115, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 115, success, outsize: 16
unique: 116, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 116, success, outsize: 32
unique: 117, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 117, success, outsize: 120
unique: 118, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 118, success, outsize: 344
unique: 119, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 119, success, outsize: 16
unique: 120, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 120, success, outsize: 16
unique: 121, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 121, success, outsize: 16
unique: 122, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 122, success, outsize: 32
unique: 123, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 123, success, outsize: 120
unique: 124, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 124, success, outsize: 344
unique: 125, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 125, success, outsize: 16
unique: 126, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 126, success, outsize: 16
unique: 127, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 127, success, outsize: 16
unique: 128, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 128, success, outsize: 32
unique: 129, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 129, success, outsize: 120
unique: 130, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 130, success, outsize: 344
unique: 131, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 131, success, outsize: 16
unique: 132, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 132, success, outsize: 16
unique: 133, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
unique: 134, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 134, success, outsize: 32
unique: 135, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 135, success, outsize: 120
   unique: 133, success, outsize: 16
unique: 136, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 136, success, outsize: 344
unique: 137, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 137, success, outsize: 16
unique: 138, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 138, success, outsize: 16
unique: 139, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 139, success, outsize: 16
unique: 140, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 20075
   unique: 140, success, outsize: 32
unique: 141, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 20075
getattr /
   unique: 141, success, outsize: 120
unique: 142, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
getdir[0]
   unique: 142, success, outsize: 344
unique: 143, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 143, success, outsize: 16
unique: 144, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 20075
   unique: 144, success, outsize: 16
unique: 145, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 145, success, outsize: 16
unique: 146, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 18103
   unique: 146, success, outsize: 32
unique: 147, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 18103
getattr /
   unique: 147, success, outsize: 120
unique: 148, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 18104
getdir[0]
   unique: 148, success, outsize: 344
unique: 149, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 18104
   unique: 149, success, outsize: 16
unique: 150, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 18104
   unique: 150, success, outsize: 16
unique: 152, opcode: LOOKUP (1), nodeid: 1, insize: 52, pid: 18104
LOOKUP /autorun.inf
getattr /autorun.inf
unique: 151, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
[00012] LSTAT
   unique: 151, success, outsize: 16
  [00012]         STATUS       33bytes (10ms)
   unique: 152, error: -2 (No such file or directory), outsize: 16
in separate terminal :

Code:
userX@serverB:~$ df
Filesystem        1K-blocks      Used Available Use% Mounted on
tmpfs               4083228       708   4082520   1% /run
devtmpfs            4078300         0   4078300   0% /dev
/dev/sda1          94126244  57313312  32009132  65% /
tmpfs               4083228     62960   4020268   2% /dev/shm
cgroup_root         4083228         0   4083228   0% /sys/fs/cgroup
cgmfs                   100         0       100   0% /run/cgmanager/fs
serverA           234315576 178573280  55742296  77% /home/userX/MNT2

userX@serverB:~$ ls ~/MNT2/
MNT/  test_20170308  test_pisti_20170309
continued in 1st terminal :

Code:
^CKilled by signal 2.
remote host has disconnected

sent:               12 messages, 243 bytes
received:           12 messages, 1368 bytes
rtt min/max/avg:    9ms/10ms/9ms
num connect:        1

userX@serverB:~$ ls ~/MNT2/

userX@serverB:~$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
tmpfs            4083228      708   4082520   1% /run
devtmpfs         4078300        0   4078300   0% /dev
/dev/sda1       94126244 57309308  32013136  65% /
tmpfs            4083228    68084   4015144   2% /dev/shm
cgroup_root      4083228        0   4083228   0% /sys/fs/cgroup
cgmfs                100        0       100   0% /run/cgmanager/fs

userX@serverB:~$ more /etc/mtab
/dev/sda1 / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
gvfsd-fuse /home/userX/.gvfs fuse.gvfsd-fuse rw,nosuid,nodev,user=userX 0 0

userX@serverB:~$ fusermount -u ~/MNT2/
fusermount: entry for /home/userX/MNT2 not found in /etc/mtab
2) when i try a homeA-to-homeB mount (= mounting userX's homeA@serverA onto userX's homeB@serverB) - or vice versa, or any other combination between the 6 machines, and actually with regular passwords or password-less - then the sshfs process will stall and actually makes 'df' commands or login attempts as userX in another terminal hang for ever - till i terminate the sshfs call with Ctrl-C. here with log output :

Code:
userX@serverB:~$ sshfs serverA:. ~/ -p portA -o nonempty,sshfs_debug,debug,loglevel=debug -C -d -f 
SSHFS version 2.8
FUSE library version: 2.9.5
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oPort=portA> <-ologlevel=debug> <-oCompression=yes> <-2> <serverA> <-s> <sftp>
... waiting ... waiting ...
^C

userX@serverB:~$ df
df: /home/userX/.gvfs: Transport endpoint is not connected
df: /home/userX: Transport endpoint is not connected
Filesystem     1K-blocks     Used Available Use% Mounted on
tmpfs            4083228      708   4082520   1% /run
devtmpfs         4078300        0   4078300   0% /dev
/dev/sda1       94126244 57308396  32014048  65% /
tmpfs            4083228    37380   4045848   1% /dev/shm
cgroup_root      4083228        0   4083228   0% /sys/fs/cgroup
cgmfs                100        0       100   0% /run/cgmanager/fs

userX@serverB:~$ ls ~/
/bin/ls: cannot access '/home/userX/': Transport endpoint is not connected

userX@serverB:~$ more /etc/mtab
/dev/sda1 / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
encfs /home/pisti/enyem fuse.encfs rw,nosuid,nodev,user=pisti 0 0
gvfsd-fuse /home/userX/.gvfs fuse.gvfsd-fuse rw,nosuid,nodev,user=userX 0 0
serverA:. /home/userX fuse.sshfs rw,nosuid,nodev,user=userX 0 0

userX@serverB:~$ fusermount -u ~/

userX@serverB:~$ fusermount -u ~/
fusermount: entry for /home/userX not found in /etc/mtab

userX@serverB:~$ more /etc/mtab
/dev/sda1 / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
encfs /home/pisti/enyem fuse.encfs rw,nosuid,nodev,user=pisti 0 0
gvfsd-fuse /home/userX/.gvfs fuse.gvfsd-fuse rw,nosuid,nodev,user=userX 0 0

userX@serverB:~$ ls ~/
MNT2/  test

userX@serverB:~$
3) and here the corresponding /var/log/{syslog,messages} output on serverB :

Code:
Mar  9 13:26:40 serverB sshd[18754]: Connection from serverA port ArbitraryPort on serverB port portB
Mar  9 13:27:52 serverB sshd[18754]: Did not receive identification string from serverA port ArbitraryPort
i hope this helps... thanks much for looking into this ssh/sshfs issue ! bye, pisti
 
Old 03-12-2017, 05:20 PM   #8
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 185

Original Poster
Rep: Reputation: 23
CORRECTION : the syslog/messages CODE field in my last reply is in parts incorrect as i mixed up serverA with serverB (while hiding my real IP and port numbers). i am very sorry for this confusion in the syslog/messages field !

here the correct statement in a new run using home2home sshfs in terminal#1 (with ssh credentials in a separate directory) :

Code:
userX@serverB:~$ sshfs serverA:. ~/ -p portA -F /home/.sshfs/userX/.ssh/config -o nonempty,sshfs_debug,debug,loglevel=debug -C -d -f
SSHFS version 2.8
FUSE library version: 2.9.5
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oPort=portA> <-F/home/.sshfs/userX/.ssh/config> <-ologlevel=debug> <-oCompression=yes> <-2> <serverA> <-s> <sftp>
debug1: Reading configuration data /home/.sshfs/userX/.ssh/config
debug1: Connecting to serverA [serverA] port portA.
debug1: Connection established.
...waiting...waiting...
login for userX in a new terminal#2 is impossible as long as the sshfs process in terminal#1 is not terminated with Ctrl-C. equally blocked are temporarily 'df' and similar commands - even for root.

here the corresponding syslog/messages output on serverA (port number AnyPortX appears arbitrary as it does not correspond to Server's PortA nor to ServerB's PortB - i guess it doesn't have to) :

Code:
Mar 12 17:41:51 serverA sshd[14326]: Connection from serverB port AnyPortX on serverA port PortA
Mar 12 17:42:54 serverA sshd[14326]: Did not receive identification string from serverB port AnyPortX
please, keep in mind that all SSH functions and all non-home2home SSHFS commands work flawlessly...
 
Old 04-17-2017, 02:31 PM   #9
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 185

Original Poster
Rep: Reputation: 23
Smile

ok, i got my SSHFS problem finally solved - with the help of Szeredi Miklos (former maintainer of SSHFS and more) who pointed out some features i wasn't aware off. as usual, it boils down to RTFM... :
Quote:
IdentityFile & UserKnownHostsFile
here my steps in short :
0) add new USER0 on CLIENT, create /home/.sshfs/USER0
1) make sure USER0 has pswdless ssh access from SERVER to SERVER
2) rsync ~/.ssh/ files from SERVER to /home/.sshfs/USER0/.ssh/ on CLIENT
3) make sure USER0 has pswdless ssh access from CLIENT to SERVER

/etc/auto.master :
Code:
/- /etc/auto.user0      uid=UID0,gid=GID0,--timeout=30,--ghost
/etc/auto.user0 :
Code:
/home/USER0 - fstype=fuse,rw,nodev,nonempty,noatime,default_permissions,allow_other,max_read=65536,port=PORT,IdentityFile=/home/.sshfs/USER0/.ssh/id_rsa,UserKnownHostsFile=/home/.sshfs/USER0/.ssh/known_hosts :sshfs\#USER0@IP\:/home/USER0
start services :
Code:
/etc/rc.d/rc.autofs start
check services with 'mount' :

Code:
dev/sda1 on / type xfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
USER0@SERVER_IP:/home/USER0 on /home/USER0 type fuse.sshfs (rw,nodev,noatime,default_permissions,allow_other)
enjoy (the speed of your ISP)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Automount fs over ssh using autofs and sshfs (with fuse) AnsemEco Linux - Newbie 25 08-14-2016 06:29 PM
ssh auto login dead after sshfs install .... Help :-) jv2112 Linux - Newbie 3 07-01-2011 08:18 PM
Single purpose ssh key for sshfs? Mleahy Linux - Security 1 03-07-2010 02:18 AM
Fastest protocol, SSH, SSHFS, VPN, TLS/SSL Akonbobot Linux - Security 4 05-12-2007 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration