sudo + SSH

Todd C. Miller Todd.Miller at courtesan.com
Wed Aug 9 11:54:26 EDT 2000


As Chris says, if you are doing:

	host1% ssh host2 sudo rm /etc/passwd

then sudo cannot turn off echo since ssh has not allocated a tty
(rsh behaves similarly).  The key here is to pass ssh the "-t" flag
so it allocates a tty and sudo is thus able to turn off echo.

 - todd



More information about the sudo-users mailing list