I am taking the liberty to post this question to the Newbie forum as it is simple (I think) and the answer will be simple (I hope!)
If I wish to access a file on a server from a client I can connect in several ways. I generally export the file system(s) on the server with nfs and mount the exports on the client with autofs/automount. Works great.
When I was running Samba on the server to allow Windows machines to access the server I could connect from a Linux client with the Samba client or Cifs client. (No longer have any Windows machines, don't do Samba any more.)
When I need to make a temporary connection I generally use the "Connect to server" feature in Nautilus (or Caja on Mate). The dialog asks for the server name or address, the port (which seems to be ignored), the "Type" which I set to SSH, the starting folder and my credentials. When I make the connection an icon appears on the Desktop representing a folder with a wire below it (signifying the network I guess) and a name such as "ken on taylor20" with ken being me and taylor20 the name of the server. So far, so good...
If I click on the icon it opens the server file system in Nautilus or Caja in my case. When I am done accessing the server I can right click on the icon and I am invited to "Unmount" which breaks the connection. As I can Unmount it sort of implies that the server file system is somewhere MOUNTED. My question is WHERE???
I have examined some of the usual suspects and (until writing up this post) have never found the location. Just now I did find what appears to be the mount point
Code:
/run/user/1000/gvfs/ken@vmCentOS7Mate sftp:host=taylor20,user=ken
However, this mount point does not seem to act like an nfs (auto)mount point. For example:
I have an automount on the client pointing to the server and configured thus:
The server /data directory appears on the client at /nfs/data
If I run a search for a file which I know is on the server in the /data directory I see the following
Code:
[ken@vmCentOS7Mate ~]$ sudo find / -name Eisenhower
[sudo] password for ken:
find: ‘/run/user/1000/gvfs’: Permission denied
/nfs/data/Eisenhower
On the other hand if I search for a file which is on my Desktop on the server - which should be accessible as I have done a "Connect to server" to the root of the server - I see
Code:
[ken@vmCentOS7Mate ~]$ sudo find / -name Gorsuch
find: ‘/run/user/1000/gvfs’: Permission denied
As I now know that the "mount point" is under the directory to which I am denied permission I am even more confused that I was yesterday when I had not located the mount point. If I run ls on the mount point it seems to work
Code:
[ken@vmCentOS7Mate ~]$ ls /run/user/1000/gvfs/sftp:host=taylor20,user=ken
bin dev ken lost+found mnt opt root srv usr
boot etc lib media net proc run sys var
data home lib64 misc nfs quitelarge sbin tmp xtra
To further confuse myself I tried running the find as me rather than with root permissions. In this case I unmounted the Connect to server to the server root and reconnected to /home/ken/Desktop where the desired file resides. Here are some abbreviated reslts
Quote:
[ken@vmCentOS7Mate ~]$ find /run/user/1000 -name Gorsuch | grep Gorsuch
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/228030540000_19728/remoteDevice-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/228030540000_19728/vmx-vmdb-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/228030540000_19728/mks-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/228030540000_19728/testAutomation-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/228030540000_19728/vmx-live-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/228030540000_19728/vmx-vigor-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/40840050000_16134/remoteDevice-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/40840050000_16134/vmx-vmdb-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/40840050000_16134/mks-fd’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/run/vmware/1000/40840050000_16134/testAutomation-fd’: Input/output error
...
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/data/data/config files/prod/t20-CentOS 7 mate/home/ken.ok/.wine/dosdevices/z:/run/systemd/journal/socket’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/data/data/config files/prod/t20-CentOS 7 mate/home/ken.ok/.wine/dosdevices/z:/run/systemd/journal/stdout’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/data/data/config files/prod/t20-CentOS 7 mate/home/ken.ok/.wine/dosdevices/z:/run/systemd/cgroups-agent’: Input/output error
find: ‘/run/user/1000/gvfs/sftp:host=taylor20,user=ken/data/data/config files/prod/t20-CentOS 7 mate/home/ken.ok/.wine/dosdevices/z:/run/systemd/notify’: Input/output error
|
This tells me that my "mount point" is not starting at the location where I told it to start.
Bottom line...
Now that I know where the "mount point" is located (I am beginning to wish I didn't

) would someone kindly tell me what is this tiger to which I now have hold the tail?
My original goal was to locate the mount point, be able to establish such a mount point by command and/or script and to access files over that mount point as I would an nfs mount point. If nothing else the SSH connection would encrypt the traffic in transit.
TIA,
Ken