in unix-like os, if you put your public ssh key to authorized_keys, you don't need password any more, and then set the explicit-shell-file-name to bin/bash, to make the m-x shell more quickly