How to execute the local bash script file with the references on the remote server using ssh?
a.sh
#!/bin/bash
echo A
source b.sh
b.sh
#!/bin/bash
echo B
Executing on the remote ssh server:
cat a.sh | ssh myserver
A
-bash: line 4: b.sh: No such file or directory
What are the options for solving this issue without copying files to the remote server?