I'm using Ubuntu's Startup Applications feature to run a script at startup. The script looks like this:
#! /bin/bash
dropBoxDevDir=/home/mitch/Dropbox/dev
set -e
yakuake &
python $dropBoxDevDir/scripts/ysess -i $dropBoxDevDir/configs/yakuake.ini
ssh-add
The idea is to:
- Run
yakuake
- Run the
ysess
script to open some tabs in Yakuake - Run
ssh-add
so that I can perform Git operations later on
The problem is that ssh-add
doesn't seem to get run. How can I figure out why it doesn't get run?
Alternatively, is there a better way to run ssh-add
after the other two commands have finished?
I'm sure you've found an answer by now, but I saw this unanswered so...
I see 2 potential causes.
I don't see where you've started ssh-agent. Looking at the man page for ssh-add it adds keys to a running ssh-agent, so that agent must be started first.
Additionally the man page for ssh-add states that if no keys are given it will install some default keys, so if the agent is indeed running, I'd make sure those are the keys you want.
I used these commands for help:
Hope this helps!