dmwm / cmssh

Interactive shell for CMS experiment
http://cms.cern.ch/
7 stars 2 forks source link

Enter PEM pass phrase: #10

Closed neggert closed 12 years ago

neggert commented 12 years ago

I'm often prompted to enter a PEM pass phrase when trying to copy a file from a storage element. Sometimes I'm asked for every file. This is quite annoying when I'm trying to copy every file in a dataset using a for loop.

vkuznet commented 12 years ago

How you'd like to handle it? Should I introduce a new passphrase command which will store it? Since the passphrase is asked by GRID middleware tools, I can wrap the call with echo, e.g. echo | srm-cp I think it will work.

neggert commented 12 years ago

I guess my question is, why does it only happen sometimes? I just quit cmssh, restarted it, and tried to copy all the files from the same dataset using the same commands, and it never prompted me for a password. To me that indicates that it's possible to do this without the raising the prompt every time, it's just a matter of figuring out under what circumstances the prompt appears.

On Tue, Apr 10, 2012 at 1:17 PM, Valentin Kuznetsov reply@reply.github.com wrote:

How you'd like to handle it? Should I introduce a new passphrase command which will store it? Since the passphrase is asked by GRID middleware tools, I can wrap the call with echo, e.g. echo | srm-cp I think it will work.


Reply to this email directly or view it on GitHub: https://github.com/vkuznet/cmssh/issues/10#issuecomment-5051067

vkuznet commented 12 years ago

Ahh, well, that because at startup of cmssh I invoke voms-proxy-init command which setup a proxy from your certificate. This proxy has limited lifetime and needs to be renewed. Therefore you have additional commands vomsinit, vomsinfo, etc. You can use them to renew your proxy. But I think I can run additional thread to do that for lazy users :)

neggert commented 12 years ago

Ah, no problem. I can run them manually. I just wasn't sure how to do it manually.

On Tue, Apr 10, 2012 at 1:41 PM, Valentin Kuznetsov reply@reply.github.com wrote:

Ahh, well, that because at startup of cmssh I invoke voms-proxy-init command which setup a proxy from your certificate. This proxy has limited lifetime and needs to be renewed. Therefore you have additional commands vomsinit, vomsinfo, etc. You can use them to renew your proxy. But I think I can run additional thread to do that for lazy users :)


Reply to this email directly or view it on GitHub: https://github.com/vkuznet/cmssh/issues/10#issuecomment-5051631

vkuznet commented 12 years ago

I've added voms_monitor which will renew user proxy. Closing the ticket.