Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 serverfault.com Feb 13 '13 at 7:24

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.