|
ssh-agent passphrase requests for desktop launchers
I have 2 debian boxes, jill and flo
flo has a virtual xp running on it.
I have setup public/private keys between jill and flo
I am using ssh-agent on jill so I only have to enter the passphrase once
I can use this command to close down the XP virtualbox on flo from Jill's terminal/console:
/usr/bin/ssh mk@flo '/usr/bin/VBoxManage controlvm FloXP savestate'
This works fine when I run it from a terminal window but if I create a desktop launcher on Jill's desktop that has the above command it ask's for the passphrase.
1) Is there away to get passphrase to be asked during boot and for it to be valid for desktop launchers and consoles?
I already have this in jill's user mk cron:
@reboot ssh-agent -s | grep -v echo > $HOME/.ssh-agent
but this make no difference the the desktop launchers.
2) Other scripts use this command that are run by the system, so when those scripts are called and they run the above command, they then request the passphrase. Can this also be bypassed?
eg: a program called heyu has a configuration file that when an X10 remote control button is pressed A12 OFF, the heyu software runs a script called: /home/sbin/haltflopl floxpoff
When /home/sbin/haltflopl floxpoff is run it does:
/usr/bin/ssh mk@flo '/usr/bin/VBoxManage controlvm FloXP savestate'
again this asks for passphrase.
3) I would like to automate the injection of the passphrase from a file. I know it bypasses security but I am disabled and typing does actual add to the pain.
Last edited by wikapuki; 09-05-2010 at 05:01 PM.
|