OpenVPN has a password prompt that is a little different than is handled by comint.el. It looks like this: Enter Auth Password: As a result, the plain text password is chown when entering in through shell-mode. The attached patch adds to ‘comint-password-prompt-regexp’ handling for this case.