SSH Command Line Password Support

Alan Barrett apb at
Sat Aug 30 00:22:39 EST 2008

On Thu, 28 Aug 2008, Jim Knoble wrote:
> : > [old SSH_ASKPASS proposals:]
> : > >
> : > >
> I believe the best way to handle this is with an ssh_config file option
> (which can then also be used on the command line).  ssh-add(1) and
> ssh-agent(1) also use SSH_ASKPASS and should use a command-line option,
> since they don't read ssh_config files.

Having to use command line options for ssh-add and ssh-agent may be
inconvenient in some environments.

It occurs to me that the policy on when to use SSH_ASKPASS
could also be embedded in the variable itself, like this:

  SSH_ASKPASS="/path/to/script"        # like today
  SSH_ASKPASS="always:/path/to/script" # use it regardless of DISPLAY or tty

--apb (Alan Barrett)

More information about the openssh-unix-dev mailing list