On 16:54:54 Nov 17, Walter Goulet wrote: > Hi, > > I don't think this question is really OpenBSD specific per-se but > rather an OpenSSH command. > > I'm using public key authentication between my OpenBSD systems > (running ssh-agent) so that I can ssh/sftp between my systems (both > are 4.1) without having to enter a password. As part of some IPSec > performance testing I'm doing, I'm copying ipsec.conf files between > the systems and applying them using ipsecctl -f which of course > requires root privileges. I'm scripting this with perl since I'm > testing 24 different IPSec policies at a time. > > What I've noticed is that when sudo (on the remote machine) > periodically asks me to reauthenticate myself prior to executing a > sudo command, the password prompt for the remote machine does not turn > off echo. This also happens if I ssh into my other machine with any > command that requires me to enter a password (such ssh host su). Any > ideas as to why this happens? A few minutes of googling didn't pull up > any useful hits as to why this happens.
sudo(1) has a timeout and it stores a cookie after an interactive password authentication. Hence the behavior you see. Anyway it is not the right approach. If you are using ssh, why don't you use ssh-agent and use public key authentication for non interactive logins? You will easily get the sequence necessary to perform that if you google a bit. Moreover your setup is not clear. Hope this gets you started. Best of luck! regards, Girish

