how to invoke SSH-ADD to read passphrase from a file

From: Javed (kjaved_at_ncs.com.sg)
Date: 12/27/04


Date: 26 Dec 2004 21:49:29 -0800

Hi,

Our requirement is to secure the database connection between 2 server
using OpenSSH.
We are able to establish the connection when we key in the passphrase
manually from the terminal for the dsa_key.

But as we are supposed to make it as an automated process, hence there
should not be any manual intervention at all.

I tried using SSH-AGENT and SSH-ADD, it works fine, BUT SSH-ADD still
prompts for the passphrase for the FIRST time. As said earlier as the
whole process is supposed to be automated hence even for the first time
it should read the password from a file.

Can any one help me with the commands as to how to invoke SSH-ADD to
read passphrase from a file. (passphrase could be a plain text or
encrypted).

Thanks
Javed



Relevant Pages

  • how to invoke SSH-ADD to read passphrase from a file
    ... Our requirement is to secure the database connection between 2 server ... We are able to establish the connection when we key in the passphrase ... I tried using SSH-AGENT and SSH-ADD, it works fine, BUT SSH-ADD still ... prompts for the passphrase for the FIRST time. ...
    (comp.security.ssh)
  • Re: Defering passphrase entry with ssh-add
    ... I'm not aware of any technical reason why ssh-add couldn't defer requesting a password until its required. ... Yes which is why you only check/run it when ssh is used. ... until it determined it needed your passphrase. ... Again, ssh-agent works for me across all terminals as well as just in X, it's ssh-add you are talking about here which is ...
    (SSH)
  • Re: Defering passphrase entry with ssh-add
    ... reason why ssh-add couldn't defer requesting a password until its ... until it determined it needed your passphrase. ... Also, how would ssh know if you didn't have a key for this connection, ... you can delay typing your passphrase, which you're going to need to ...
    (SSH)
  • anyone using ssh-3.2.9.1 non-commercial with unstable?
    ... Before, I would run ssh-add from a konsole shell, and it ... would ask for a passphrase from stdin. ... I suppose there is a script somewhere that runs ssh-askpass program in a ...
    (Debian-User)
  • Re: how to invoke SSH-ADD to read passphrase from a file
    ... Javed> still prompts for the passphrase for the FIRST time. ... There is no point to this: having both the encrypted key and its ...
    (comp.security.ssh)