I have a script which runs another script via SSH on a remote server using sudo. However, when I type the password, it shows up on the terminal. (Otherwise it works fine)
ssh user@server "sudo script"
What's the proper way to do this so I can type the password for sudo over SSH without the password appearing as I type?
ssh <user@server> sudo <script>, as I was getting the errorsudo: no tty present and no askpass program specified– knocte Jul 11 '16 at 8:58