Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- pageant command line options
February 18, 2004, 2:53 pm
rate this thread
"C:\Program Files\Secure Tools\pageant.exe" H:\keys\PuTTY.ppk
...in the 'All Users' Startup folder (on all Windows machines on our
network), where H: is mapped to each users' home area.
I've written instructions showing the users how to generate & save
their private key and asked them to it in H:\keys\putty.PPK
So, if the above PuTTY Agent runs, it will find the user's key (if it
exists) & ask for the passphrase (if required - which I've insisted
the users add!).
The problem is, if H:\keys\putty.ppk doesn't exist (which it won't for
alot of users), PuTTY Agent pops up a dialogue with "Couldn't load
this key (unable to open file)".
If I try & trick it by creating a zero-length putty.ppk (if it doesn't
already exist), PuTTY Agent complains with "Couldn't load this key
(not a private key)"
So, what I really need for this to work for all users (with & without
a private key), is a pageant command line option that says "don't
complain if a private key is not found", e.g....
"C:\Program Files\Secure Tools\pageant.exe" --quiet H:\keys\PuTTY.ppk
Any plans for something like this? Anyone managed to do something
Re: pageant command line options
Why can't you just run a batch file, along the lines of
if exist h:\keys\putty.ppk start pageant.exe h:\keys\putty.ppk
if not exist h:\keys\putty.ppk start pageant.exe
Even Windows's rather poor scripting ability should be more than
capable of this; there shouldn't be a need to bloat actual
applications with this kind of thing.
Simon Tatham "That all men should be brothers is a
- » Allow SFTP sessions and refuse interactive SSH access for some users.
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum