Date: Mon, 20 Mar 2000 13:18:04 +1100 From: aunty <aunty@comcen.com.au> To: Dan Nelson <dnelson@emsphone.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: password echo with remote sudo Message-ID: <20000320131804.B47022@comcen.com.au> In-Reply-To: <20000319190548.A66481@dan.emsphone.com> References: <20000320120041.A47022@comcen.com.au> <20000319190548.A66481@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 19, 2000 at 07:05:48PM -0600, Dan Nelson wrote: > In the last episode (Mar 20), aunty said: > > > > We're trying to use a script which runs a sudo command on a remote > > linux box via ssh, and the sudo password keeps echoing to the screen > > even though the ssh password does not. > > Add a -t to the ssh commandline. When ssh is run with a command > argument, it does not allocate a pty on the remote end (on the > assumption that you're running this from a cron script and don't want > to waste a pty). No pty means no echoing; in fact, your local terminal > is echoing your characters at this point. Spot on, it works like a beauty now, thanks much! -- Regards, -*Sue*- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000320131804.B47022>