If someone logs into a server via ssh for shell usage, a quick use of last|w|who can be used to show the logged in user. If someone mounts a directory on the same server via sshfs from another computer last|w|who do not show a connection. Is there a command similar to last|w|who which will show current sshfs mounts on a server?
I have an SSHFS mount from a Ubuntu Server VM guest, mounting a host Mac OS X directory. Changes made directly in the Mac OS X host directory take approx 5 - 10 seconds to reflect in the Ubuntu Server VM guest mount.
I am using the following command...
sshfs user@host: ~/host
What additional options (if any) will improve this latency?
I have an sshfs connection setup with a remote filesystem on a Linux server. I'm doing an rsync from my local server to the ftpfs-filesystem. Because of the nature of this setup, I can't chown
anything on the sshfs filesystem.
When I do the rsync, it tries to chown all the files after it transfers them. This results in chown errors, even though it transfers the files just fine.
With rsync, is there a way to tell it to not try and chown the files? If I rsync like 1000 files I end up with a log of 1000 chown: permission denied (error 13)
errors. I know it doesn't hurt anything to get these errors since the ownership of the files is determined by the sshfs configuration itself, but it would be nice to not get them.
I use SSHFS to mount a directory on a remote server. There is a user xxx on client and server. UID and GID are identical on both boxes.
I use
sshfs -o kernel_cache -o auto_cache -o reconnect -o compression=no \
-o cache_timeout=600 -o ServerAliveInterval=15 \
[email protected]:/mnt/content /home/xxx/path_to/content
to mount the directory on the remote server. When I log in as xxx on the client I have no problems. I can cd into /home/xxx/path_to/content.
But when I log in on the client as another user zzz and then
$ ls -l /home/xxx/path_to
I get this
d????????? ? ? ? ? ? content
and on
$ ls -l /home/xxx/path_to/content
I get
ls: cannot access content: Permission denied
When I do
$ ls -l /mnt
on the remote server I get
drwxr-xr-x 6 xxx xxx 4096 2011-07-25 12:51 content
What am I doing wrong? The permissions seem to be correct to me. Am I wrong?
On my local host alpha
I have a directory foo
that is mapped via sshfs to host bravo
as follows:
$ sshfs charlie@bravo:/home/charlie ~/foo
However, on host bravo
there is another user, delta, that I want to sudo /bin/su
as, so that I can do work in bravo:/home/delta
. delta
may not be logged into via ssh; for reasons which I cannot change, you can only sudo over to delta once you're on the machine.
Normally I'd ssh into bravo
, then sudo to delta, but I'm wondering if there's any way that I can do that when I've got charlie's home dir mounted via ssh.