/ bin / sh is a link to / bin / bash, so bash should be the shell used by the tramp.
This is not the same. When called as "sh", it will behave like sh, not bash, so bash specific rc / profile files (for example ~ / .bash_profile, ~ / .bashrc) will not be received. However, the ~ / .profile file will be read. Your problem may be to use bash syntax to set stuff in your ~ / .profile.
This will not work:
export PATH=/some/path:$PATH
But it will be:
PATH=/some/path:$PATH export PATH
source share