I am running a script on a remote host using ssh
cat script.sh | ssh user@hostB
The script resides on host A and is run on host B using the above
ssh command. So far it was good. But now the script has to read a file which also resides on the host A.
The question: Is it possible for the script to read the file from host A while running on host B?
Any help appreciated.