A is a Mac Os X 10.7.2 host and B is an ArchLinux VM running in A. I can ssh from A to B and from B to A using an authentication key. I want B to mount itself in A using sshfs when it starts.
Why does this work ...
X@B $ ssh A X@A $ sshfs B: Desktop/B/ X@A $ ls Desktop/B/ Desktop/ Downloads/ Temp/ bin/
... and this doesn't?
X@B $ ssh -t A "/opt/local/bin/sshfs B: Desktop/B/" Enter passphrase for key '/Users/X/.ssh/id_dsa': Connection to A closed. -- then back on A: -- X@A $ ls Desktop/B/ [empty]
Why does the first scenario works without any problem when the second does not?
I also tried the dual operation (mounting A in B instead of B in A) and the second scenario does not work better. I use the -t to be able to type my passphrase and I don't care about typing it for this question (aka don't suggest me to forward my agent it's not the question...).
Here are my versions:
X@A $ sshfs -V SSHFS version 2.3 fuse4x library version: FUSE 2.8.6 / fuse4x 0.8.13 X@B $ sshfs -V SSHFS version 2.3 FUSE library version: 2.8.6 fusermount version: 2.8.6 using FUSE kernel interface version 7.12