no, you are using a unix-like system. if the user does not have root privileges, they cannot perform your ridiculous suggestion.
the correct way to elicit a password from the user for ssh is to use ssh-askpass. a safe way to pass this to processes such that it does not appear in the process table is to pipe it.