I have connected one of my production server folders with my "ssh account" server via
I often need to find out
realpath) of the file on the original (production) server, but the pwd returns the path to file on the connected ("ssh account") server.
Is there a way to get original path?
Edit: more about this: I am using this to link my ssh server to multiple different SFTP servers/shared hosting.
so, if i do this (on some of the servers):
sshfs user@domain:/ mount_point, then I am connected to my FTP account, which acts as root for my user, but is more along something like
/var/www/clients/c/a/account/pub/ and that's the path I need –
sshfs user@domain:/ mount_point # mount SFTP acc. cd mount_point XXXX file.ext # get back: /var/www/clients/…/pub/file.ext pwd file.ext # returns /ssh-server/path/mount_point/file.ext
Hope it makes sense now.