Re: How do I make use of SSH_ASKPASS?



On Sun, 27 Jan 2008 11:16:27 +0000
Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> wrote:

I can't find out to make use of this.

It is set to /usr/libexec/openssh/gnome-ssh-askpass, but I still get
prompted for a password when I use ssh.

I thought the prompt was only supposed to occur when I login to GNOME.

SSH_ASKPASS is merely the name of the program that the ssh tools
will invoke in order to prompt you for a password (and they may
not use it if there is a tty they can ask on instead - I forget
what the default it).

If you are looking for the tool that will remember your passwords
and not prompt you a second time, you are looking for ssh-agent,
but it is important to know that the agent only remembers public
keys, not passwords, so if you don't have public key authorization
setup, you are still gonna get a password prompt.

You can load public keys into ssh-agent using ssh-add, so I have
things setup with a few shell scripts that use ssh-add -l to find out
if the key is loaded, and if it isn't loaded, uses ssh-add and
the askpass program to get it loaded, then invokes ssh.

That way I only get prompted once per session.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: SSH login automation, get stuck at the last step.
    ... will get stuck running the batch file. ... and then the prompt. ... When I execute my script on the top, ... Does anybody know about using Expect to do ssh login and then run any ...
    (comp.lang.tcl)
  • ssh prompt quit after timeout
    ... In ssh even if the LoginGraceTime has ended the prompt will be there until ... Esta mensagem é para uso exclusivo de seu destinatário e pode conter ... informações privilegiadas e confidenciais.Se você não é o destinatário, ...
    (SSH)
  • RE: ssh prompt timeout
    ... If the reader of the message is not the intended recipient, ... Subject: ssh prompt timeout ... >informações privilegiadas e confidenciais. ...
    (RedHat)
  • Re: Defering passphrase entry with ssh-add
    ... it checks for valid credentials in the agent but continues with other Preferred Authentication mechanisms if not found (ie password prompt). ... There are several drawbacks to ssh adding all keys it found every time you tried an ssh session: ...
    (SSH)
  • Re: Problems with User Authentication using PAM & LDAP
    ... >> Anyone had problems trying to connect via ssh to FC2 server setup for ... >> When I ssh to FC2 it prompts for my password. ... >> password at the first prompt it lets me in. ...
    (Fedora)