You are here

Pageant and PuttyPortable?

11 posts / 0 new
Last post
bashusr
Offline
Last seen: 16 years 10 months ago
Joined: 2008-02-16 21:17
Pageant and PuttyPortable?

Can we add pageant to puttyportable? Is it portable? It'd be useful to click on "puttyportable.exe" and have both pageant and putty pop up... thanks!

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 8 months ago
Joined: 2006-06-18 13:55
Pageant???

Bash,

Welcome to PortableApps.com,

Could you tell us more about Pageant so we could easily know if anyone would be interested in your request?

Tim

Things have got to get better, they can't get worse, or can they?

rab040ma
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-08-27 13:35
People who use public keys

People who use public keys with Putty can benefit from Pageant. It is part of the complete Putty distribution. PuttyPortable doesn't include Pageant or PuttyGen or some of the other tools that can be handy.

They all work together, though, which means they might use the same registry entries and such, which means there might be some fun keeping them coordinated.

MC

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 8 months ago
Joined: 2006-06-18 13:55
Ok, Apparently there was

Ok,
Apparently there was some interest at one time.

I did some searching and found:
https://portableapps.com/node/5796

Seems to have stalled though

Tim

Things have got to get better, they can't get worse, or can they?

jettca1
Offline
Last seen: 16 years 4 months ago
Joined: 2008-08-14 14:17
Voting to bring Pageant to PuTTY portable

I'd love to be able to use some keys to prevent all the password-ing.

Smile

smackdown323
Offline
Last seen: 15 years 5 months ago
Joined: 2009-07-10 02:01
Here's a dirty hack

This is a real dirty hack, dont flame me, cos it works for me. based on the putty paf.exe Just unzip it in your portable apps directory. It uses a batch file to preload your private keys.
http://savedonthe.net/download/124/PuTTYAgentPortable.zip

otheus
Offline
Last seen: 5 years 4 months ago
Joined: 2008-06-06 07:04
Boosting signal, asking for guidance

Thankfully, 0.65 is now bundled directly (in spite of what the FAQ says, in regards to version 0.59) with the binaries distributed by the Putty devs -- this is a good thing, as the software needs to be built in a way that the signatures and crypto hashes can verify they have been untampered. It's also good because now pageant is included in the PortableApps download.

My question is: how do I get the Portable Apps launcher to recognize the additional binary (pageant.exe) in the Apps folder? If I find out the answer before someone else replies, I'll post it here.

otheus
Offline
Last seen: 5 years 4 months ago
Joined: 2008-06-06 07:04
Answer for putty 0.65 and PA 12.2
  1. Put your Key in the Documents folder (for instance). So if you have PA installed on what is now the F: drive, put the key in F:\Documents.
  2. Modify %PAL:AppDir%\AppInfo\Launcher\PuttyPortable.ini as follows:
    ProgramExecutable=PuTTY\pageant.exe
    CommandLineArguments='%PAL:PortableAppsBaseDir%\Documents\uibk.ppk -c %PAL:AppDir%\PuTTY\PUTTY.EXE'
    DirectoryMoveOK=yes
    SingleAppInstance=false
    

Notes:

  • Pageant sticks around even if you close all putty windows, and when you re-launch, now we're running pageant again. Without SingleAppInstance=false, PA would prevent a successful launch. Luckily, Pageant is smart enough to realize it's already running and happily launches putty again, without duplicating its own process. However, by setting this option, we make it possible for the user to do something stupid, such as running a local copy of the program, which may have cause the settings to get out of sync.
  • I would have used %PortableApps.comDocuments% but this did not work (Pageant could not find the keyfile.)
  • If you think the key should not be in the Documents folder but in the App-specific Data folder, please comment here with rationale.
perkin
Offline
Last seen: 7 years 10 months ago
Joined: 2014-01-29 23:44
...

Thanks for the approach. I prefer to keep my (encrypted) keys in the subfolder .\Data\Keys. You need to set WorkingDirectory as well for stringing together key files without repeating the root of the key-folder everytime:

ProgramExecutable=putty\pageant.exe
DirectoryMoveOK=yes
SupportsUNC=yes
WorkingDirectory='%PAL:DataDir%\Keys'
CommandLineArguments='"private1.ppk" "private2.ppk" -c %PAL:AppDir%\putty\putty.exe'
nbmorgan
Offline
Last seen: 3 years 2 months ago
Joined: 2008-05-24 19:04
My Hack to Add Pageant

Upate -> PortableApps\PuTTYPortable\App\AppInfo\appinfo.ini
Do not copy 1st column in the code block, ! = change, # = keep, + = add
Code block is messing with my quotes '=' "="

# [Control]
! Icons=2
# Start=PuTTYPortable.exe
# Name=PuTTY
+ Start1=PagentPortable.exe
+ Name1=Pagert Portable
# BaseAppID=SimonTatham.PuTTY

Copy PortableApps\PuTTYPortable\PuTTYPortable.exe to PortableApps\PuTTYPortable\PageabtPortable.exe
Copy PortableApps\PuTTYPortable\App\AppInfo\Launcher\PuTTYPortable.ini to PortableApps\PuTTYPortable\App\AppInfo\Launcher\PageantPortable.ini
Upate -> PortableApps\PuTTYPortable\App\AppInfo\Launcher\PageantPortable.ini

# [Launch]
! ProgramExecutable=putty\pageant.exe
# DirectoryMoveOK=yes
# SupportsUNC=yes
+ WorkingDirectory='%PAL:PortableAppsBaseDir%\mykeypath'
+ CommandLineArguments=' "mykey1.ppk" "mykey2.ppk" '

Now you can add Pageant as an autostart and load your keys when you start portable apps

BubbaLovesApps
Offline
Last seen: 1 year 4 months ago
Joined: 2021-06-21 10:18
Follow up

Jus to follow up on some of these suggestions, but has anyone got Pageant to load alongside PuTTy portable?

I've tried the suggestions above, but they all seem to give me an error of some sort.

If anyone has this working, I'd love to get a detailed explanation on how to make it work.

Thanks!

Log in or register to post comments