Force reading with SSH_ASKPASS?

Damien Miller djm at mindrot.org
Sun Mar 16 10:16:30 EST 2003


Phil wrote:
> Hi,
> 
> I'm looking at integrating sftp into a larger project. It would be nice if 
> there was a way to force read_passphrase() (in readpass.c) to use SSH_ASKPASS 
> regardless of the properties of the terminal. 

Set the DISPLAY environment variable (to anything, it doesn't have to be a valid X socket) and make sure that the ssh invocation has no controlling tty.

-d





More information about the openssh-unix-dev mailing list