in reply to passphrase on a RSA key with net::ssh::perl
As a workaround you could try to make a copy of the ssh key and change its password using ssh-keygen -p -f keyfilename.
This is often what you want anyway, since the whole point of passphrase protected ssh keys is that if someone gets hold of your keyfile (such as if your notebook is stolen), they can't use it. This advantage is negated if you store the password on the same computer and supply it automatically from a script. That, of course, may not be what you want: maybe you want to query the password using some GUI, I can't tell.
Update: for both the original question (supplying the passphrase to ssh) and for changing the passphrase of the key programmatically, you could try setting the SSH_ASKPASS environment variable, as documented in the manual page ssh(1).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passphrase on a RSA key with net::ssh::perl
by manb (Novice) on Feb 06, 2011 at 13:44 UTC | |
by salva (Canon) on Feb 06, 2011 at 16:59 UTC |