Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I connect from my windows desktop to linux(centos) vps using pytty, authenticating with key stored in pageant. Now I would like to store passwords in encrypted file and use them in scripts, but without server side keyring. Is it possible to use key stored in my local pageant to decrypt remote file? If yes, how to set it up?

EDIT: If no, is there a pageant alternative that can do both: authentication and remote file decryption (or passing key to remote keyring)?

share|improve this question

migrated from Feb 13 '13 at 7:24

This question came from our site for system and network administrators.

You can't do that with an SSH agent because it's only intended for handling SSH authentication challenges. It is possible with a GPG key and gpg-agent[0], but requires some manual work to get it forwarded over the SSH connection.

[0] I don't know if this is available for Windows.

share|improve this answer
I figured out the solution with gpg(server side) but that woud ask me for passphrase once per session, which I would like to avoid (that's why I use pageant in the first place). – petr0 Feb 12 '13 at 17:30

Pageant is specifically designed for SSH authentication. Using it to store passwords or decrypt files might be possible but it would be a hack; it isn't the right tool for the job.

If you want something to store your passwords in an encrypted form, maybe Keepass or one of the many similar products would work better for you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .