LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-05-2010, 04:55 PM   #1
wikapuki
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 55

Rep: Reputation: 15
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.
 
Old 09-05-2010, 05:51 PM   #2
wikapuki
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 55

Original Poster
Rep: Reputation: 15
Just found solution / problem for 1 & 2. These were turned off on the startup application:
Certificate and Key Storage
Secret Storage Service
SSH Key Agent
 
  


Reply

Tags
passphrase, sshagent


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh-agent -> The agent has no identities. windstory Linux - Security 2 11-19-2008 06:45 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
Gnome Desktop launchers appear as .desktop and do not function tbpollard Linux - Newbie 5 11-19-2007 01:08 PM
Add launchers to desktop in Java Desktop System omega71122 Solaris / OpenSolaris 6 01-31-2006 05:15 PM
Nautilus cannot open desktop launchers ptaylor Linux - General 2 01-05-2003 10:09 AM


All times are GMT -5. The time now is 08:58 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration